From 8f43e9d18c56ea77ab21a12e9f9ce9b7355a33ac Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 27 May 2016 19:35:48 +0200 Subject: [PATCH] fixes #4225 --- compiler/semstmts.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index f20a0c36a..20de8e928 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1250,7 +1250,7 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind, c.p.wasForwarded = proto != nil maybeAddResult(c, s, n) - if sfImportc notin s.flags: + if lfDynamicLib notin s.loc.flags: # no semantic checking for importc: let semBody = hloBody(c, semProcBody(c, n.sons[bodyPos])) # unfortunately we cannot skip this step when in 'system.compiles'