fix tinvalidinout
This commit is contained in:
parent
cdb011afdc
commit
05bfa47996
2 changed files with 4 additions and 7 deletions
|
|
@ -881,9 +881,6 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
|
||||||
# erases all declared fields
|
# erases all declared fields
|
||||||
body.n.sons = nil
|
body.n.sons = nil
|
||||||
|
|
||||||
debug s.typ
|
|
||||||
echo s.typ[0].sym.flags
|
|
||||||
|
|
||||||
popOwner(c)
|
popOwner(c)
|
||||||
closeScope(c)
|
closeScope(c)
|
||||||
elif a.sons[2].kind != nkEmpty:
|
elif a.sons[2].kind != nkEmpty:
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: "nim check $file"
|
cmd: "nim check $file"
|
||||||
errormsg: "`in` and `out` flags can be used only with imported types"
|
errormsg: "The `in` modifier can be used only with imported types"
|
||||||
nimout: '''
|
nimout: '''
|
||||||
tinvalidinout.nim(14, 7) Error: `in` and `out` flags can be used only with imported types
|
tinvalidinout.nim(14, 7) Error: The `out` modifier can be used only with imported types
|
||||||
tinvalidinout.nim(17, 9) Error: `in` and `out` flags can be used only with imported types
|
tinvalidinout.nim(17, 9) Error: The `in` modifier can be used only with imported types
|
||||||
tinvalidinout.nim(18, 9) Error: `in` and `out` flags can be used only with imported types
|
tinvalidinout.nim(18, 9) Error: The `in` modifier can be used only with imported types
|
||||||
'''
|
'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue