mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 06:54:16 +00:00
Fix issue #1203
This commit is contained in:
@@ -192,6 +192,8 @@ proc isCastable(dst, src: PType): bool =
|
||||
result = false
|
||||
elif ss < 0:
|
||||
result = false
|
||||
elif not typeAllowed(dst, skParam):
|
||||
result = false
|
||||
else:
|
||||
result = (ds >= ss) or
|
||||
(skipTypes(dst, abstractInst).kind in IntegralTypes) or
|
||||
|
||||
Reference in New Issue
Block a user