diff options
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 812d1ff71..373e5fcdb 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -616,7 +616,7 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode = b[j] = newSymNode(v) if def.kind == nkEmpty: if v.typ.kind in {tyObject, tyTuple}: - discard semConstructType(c, newNodeI(nkObjConstr, v.info), v.typ, {}) + checkDefaultConstruction(c, v.typ, v.info) else: checkNilable(c, v) if sfCompileTime in v.flags: |