summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorYuriy Glukhov <yuriy.glukhov@gmail.com>2018-06-15 12:54:59 +0300
committerYuriy Glukhov <yuriy.glukhov@gmail.com>2018-06-15 12:54:59 +0300
commit951157a4e9937eea895a95df0bd46c03b330f7c2 (patch)
tree82bf8031a5167c04ac50a464d274a4828fd5288c /compiler
parent466af35d4d7ad645e1de5a38beeadbbe5ddd7998 (diff)
downloadNim-951157a4e9937eea895a95df0bd46c03b330f7c2.tar.gz
Fixed proto options
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semstmts.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index dc42f9a21..292238dc9 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -1559,6 +1559,7 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind,
     addParams(c, proto.typ.n, proto.kind)
     proto.info = s.info       # more accurate line information
     s.typ = proto.typ
+    proto.options = s.options
     s = proto
     n.sons[genericParamsPos] = proto.ast.sons[genericParamsPos]
     n.sons[paramsPos] = proto.ast.sons[paramsPos]