Skip to content

Commit

Permalink
all pragmas in errmsgs should be written: '.importc' (un-ambiguous an…
Browse files Browse the repository at this point in the history
…d less verbose than {.importc.}
  • Loading branch information
timotheecour committed Apr 10, 2020
1 parent 689aec6 commit 4c5ef53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/vmgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ proc genBinaryABCD(c: PCtx; n: PNode; dest: var TDest; opc: TOpcode) =
c.freeTemp(tmp3)

template sizeOfLikeMsg(name): string =
"'$1' requires 'importc' types to be 'completeStruct'" % [name]
"'$1' requires '.importc' types to be '.completeStruct'" % [name]

proc genNarrow(c: PCtx; n: PNode; dest: TDest) =
let t = skipTypes(n.typ, abstractVar-{tyTypeDesc})
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/tsizeof2.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
discard """
errormsg: "'sizeof' requires 'importc' types to be 'completeStruct'"
errormsg: "'sizeof' requires '.importc' types to be '.completeStruct'"
line: 9
"""

Expand Down

0 comments on commit 4c5ef53

Please sign in to comment.