From 57df2c9c3a372fbdbafe41a8adb6fbe10ddc622f Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 28 Jun 2019 21:04:49 +0200 Subject: [PATCH] fixes #11611 (cherry picked from commit 7ddb31262e4773c0bf5a14cf89637b590c6ad5d8) --- compiler/ccgtypes.nim | 2 +- tests/destructor/tsimpletable.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index b28ecfd950..727cf9c8e0 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -416,7 +416,7 @@ proc getTypeDescWeak(m: BModule; t: PType; check: var IntSet): Rope = proc getSeqPayloadType(m: BModule; t: PType): Rope = var check = initIntSet() - result = getTypeDescWeak(m, t, check) + result = getTypeDescWeak(m, t, check) & "_Content" #result = getTypeForward(m, t, hashType(t)) & "_Content" proc seqV2ContentType(m: BModule; t: PType; check: var IntSet) = diff --git a/tests/destructor/tsimpletable.nim b/tests/destructor/tsimpletable.nim index 07efc86d92..d32fe51cb2 100644 --- a/tests/destructor/tsimpletable.nim +++ b/tests/destructor/tsimpletable.nim @@ -1,5 +1,5 @@ discard """ - cmd: '''nim c --newruntime $file''' + cmd: '''nim cpp --newruntime $file''' output: '''(field: "value") 3 3 new: 0''' """