This commit is contained in:
Clay Sweetser
2014-05-26 10:13:29 -04:00
parent 6608fcc60f
commit c4f77ecd9a

View File

@@ -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