diff options
-rw-r--r-- | compiler/semexprs.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 7deb46af9..c8d95886d 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -185,6 +185,8 @@ proc isCastable(dst, src: PType): bool = # castableTypeKinds = {tyInt, tyPtr, tyRef, tyCstring, tyString, # tySequence, tyPointer, tyNil, tyOpenArray, # tyProc, tySet, tyEnum, tyBool, tyChar} + if dst.kind == tyOpenArray: + return false var dstSize, srcSize: BiggestInt dstSize = computeSize(dst) |