diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 10fc6fb6d6..f15cdddeeb 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -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: diff --git a/tests/errmsgs/tinvalidinout.nim b/tests/errmsgs/tinvalidinout.nim index 463c9951a2..ce7eb6022c 100644 --- a/tests/errmsgs/tinvalidinout.nim +++ b/tests/errmsgs/tinvalidinout.nim @@ -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 ''' """