mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 02:18:00 +00:00
fix tinvalidinout
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
'''
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user