diff options
Diffstat (limited to 'script/vm/type.lua')
-rw-r--r-- | script/vm/type.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/type.lua b/script/vm/type.lua index 0432876c..fba39c2d 100644 --- a/script/vm/type.lua +++ b/script/vm/type.lua @@ -324,6 +324,9 @@ function vm.canCastType(uri, defNode, refNode) if defInfer:view(uri) == 'unknown' then return true end + if refInfer:view(uri) == 'unknown' then + return true + end if vm.isSubType(uri, refNode, 'nil') then -- allow `local x = {};x = nil`, |