Fixed proto options

This commit is contained in:
Yuriy Glukhov
2018-06-15 12:54:59 +03:00
parent 466af35d4d
commit 951157a4e9

View File

@@ -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]