From ec828ea7d5b3aa4010e07716c485acfbf19b0c37 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 18 Mar 2020 04:08:27 -0700 Subject: [PATCH] fix #13524 astToStr now works inside generics --- compiler/semgnrc.nim | 12 +----------- lib/system.nim | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index 67b4b5a907e73..6fefc2233558c 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -226,14 +226,7 @@ proc semGenericStmt(c: PContext, n: PNode, var mixinContext = false if s != nil: incl(s.flags, sfUsed) - # more robust/future proof than: - # mixinContext = s.magic in {mDefined, mDefinedInScope, mCompiles, mAstToStr} - if s.magic != mNone and s.typ != nil: - for i in 1..