Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Jan 23, 2025
1 parent 59ebc32 commit 1a036c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/semstmts.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ proc typeSectionFinalPass(c: PContext, n: PNode) =
if s.typ.kind != tyEnum and sfImportC notin s.flags:
# EventType* {.size: sizeof(uint32).} = enum
# AtomicFlag* {.importc: "atomic_flag", header: "<stdatomic.h>", size: 1.} = object
localError(c.config, pragmas[i].info, "size pragma only allowed for imported objects and enums")
localError(c.config, pragmas[i].info, "size pragma only allowed for enum types and imported types")

if a[1].kind == nkEmpty:
var x = a[2]
Expand Down

0 comments on commit 1a036c9

Please sign in to comment.