diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-05-15 08:17:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-15 08:17:29 +0200 |
commit | 9ecb24e443453066e2f9361784daf51f3e5c7f9c (patch) | |
tree | 6a87cbc8f668bc970376b5ae67507a99dfe3ab3d /compiler | |
parent | fa3d19b4773648744834c67e5b2b9411e062b844 (diff) | |
download | Nim-9ecb24e443453066e2f9361784daf51f3e5c7f9c.tar.gz |
fixes #88 (#11243)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semexprs.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 91da4a1ec..c0aaccf56 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -143,8 +143,8 @@ proc checkConvertible(c: PContext, targetTyp: PType, src: PNode): TConvStatus = if d == nil: result = convNotLegal - elif d.kind == tyObject and s.kind == tyObject: - result = checkConversionBetweenObjects(d, s, pointers) + elif d.skipTypes(abstractInst).kind == tyObject and s.skipTypes(abstractInst).kind == tyObject: + result = checkConversionBetweenObjects(d.skipTypes(abstractInst), s.skipTypes(abstractInst), pointers) elif (targetBaseTyp.kind in IntegralTypes) and (srcBaseTyp.kind in IntegralTypes): if targetTyp.isOrdinalType: |