diff options
author | Araq <rumpf_a@web.de> | 2016-05-01 09:26:52 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-05-10 22:03:07 +0200 |
commit | 0dc92960d2239c59ad6f93bd8c507d060e847a29 (patch) | |
tree | 4b1b9a4d52c1e14b78a9ced4aee9f08a49f967ad /compiler/semexprs.nim | |
parent | 9fb97e310f602bc8c0fd3b202323009fdccd0dfb (diff) | |
download | Nim-0dc92960d2239c59ad6f93bd8c507d060e847a29.tar.gz |
include statement is not restricted to top level statements anymore
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 105667aab..b6d53851a 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -2343,7 +2343,7 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = if not isTopLevel(c): localError(n.info, errXOnlyAtModuleScope, "from") result = evalFrom(c, n) of nkIncludeStmt: - if not isTopLevel(c): localError(n.info, errXOnlyAtModuleScope, "include") + #if not isTopLevel(c): localError(n.info, errXOnlyAtModuleScope, "include") result = evalInclude(c, n) of nkExportStmt, nkExportExceptStmt: if not isTopLevel(c): localError(n.info, errXOnlyAtModuleScope, "export") |