Fix issue #1203
This commit is contained in:
parent
6608fcc60f
commit
c4f77ecd9a
1 changed files with 2 additions and 0 deletions
|
|
@ -192,6 +192,8 @@ proc isCastable(dst, src: PType): bool =
|
||||||
result = false
|
result = false
|
||||||
elif ss < 0:
|
elif ss < 0:
|
||||||
result = false
|
result = false
|
||||||
|
elif not typeAllowed(dst, skParam):
|
||||||
|
result = false
|
||||||
else:
|
else:
|
||||||
result = (ds >= ss) or
|
result = (ds >= ss) or
|
||||||
(skipTypes(dst, abstractInst).kind in IntegralTypes) or
|
(skipTypes(dst, abstractInst).kind in IntegralTypes) or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue