You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nim/godotnim.nim(769, 9) Error: type mismatch: got <typeof(nil)> but expected 'seq[string]'
I looked into it and it's referencing this proc:
procfromVariant*[T](s: varseq[T], val: Variant): ConversionResult=if val.getType() ==VariantType.Nil:
s =nilelif val.getType() ==VariantType.Array:
let arr = val.asArray()
var newS =newSeq[T](arr.len)
for idx, item in arr:
mixin fromVariant
let convResult =fromVariant(newS[idx], item)
if convResult !=ConversionResult.OK:
return convResult
shallowCopy(s, newS)
else:
result=ConversionResult.TypeError
and the line it's through an error on is the s = nil. I'm not sure how gdobj gets to the point where it assumes that val is VariantType.Nil, but that seems to be causing the issue.
The text was updated successfully, but these errors were encountered:
I'm running into an issue where I have an object subclassing a resource:
The error I'm getting is:
I looked into it and it's referencing this proc:
and the line it's through an error on is the
s = nil
. I'm not sure howgdobj
gets to the point where it assumes thatval
isVariantType.Nil
, but that seems to be causing the issue.The text was updated successfully, but these errors were encountered: