diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-12-29 20:45:22 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-12-29 20:45:22 +0100 |
commit | 250e81cedad70c861bf0b18c12b6f23e79388574 (patch) | |
tree | 4dce62574eb296d12daed0d4ee4e9deb580efe61 /compiler/cgmeth.nim | |
parent | e518c7a0052e709af176183e5bad63c005ac9bbb (diff) | |
parent | 255177f7cd0e921ac428a5eb0ee9a27f3d4ee6ef (diff) | |
download | Nim-250e81cedad70c861bf0b18c12b6f23e79388574.tar.gz |
Merge branch 'devel' into new-ll
Diffstat (limited to 'compiler/cgmeth.nim')
-rw-r--r-- | compiler/cgmeth.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/cgmeth.nim b/compiler/cgmeth.nim index ade202dc1..312afec1a 100644 --- a/compiler/cgmeth.nim +++ b/compiler/cgmeth.nim @@ -19,10 +19,7 @@ proc genConv(n: PNode, d: PType, downcast: bool): PNode = if (source.kind == tyObject) and (dest.kind == tyObject): var diff = inheritanceDiff(dest, source) if diff == high(int): - # see bug #3550 which triggers it. XXX This is a hack but I don't know yet - # how the real fix looks like: - localError(n.info, "there is no subtype relation between " & - typeToString(d) & " and " & typeToString(n.typ)) + # no subtype relation, nothing to do result = n elif diff < 0: result = newNodeIT(nkObjUpConv, n.info, d) |