fix tinvalidinout

This commit is contained in:
Zahary Karadjov
2017-05-13 16:31:44 +03:00
parent cdb011afdc
commit 05bfa47996
2 changed files with 4 additions and 7 deletions

View File

@@ -881,9 +881,6 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
# erases all declared fields
body.n.sons = nil
debug s.typ
echo s.typ[0].sym.flags
popOwner(c)
closeScope(c)
elif a.sons[2].kind != nkEmpty:

View File

@@ -1,10 +1,10 @@
discard """
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: '''
tinvalidinout.nim(14, 7) Error: `in` and `out` flags 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(18, 9) 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: The `in` modifier can be used only with imported types
tinvalidinout.nim(18, 9) Error: The `in` modifier can be used only with imported types
'''
"""