diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-09-03 15:19:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 09:19:52 +0200 |
commit | 4bf323d6c44b329fe1955f210580a73952c081d0 (patch) | |
tree | 4d699dd2fb98db4916858d58ecb163fa6801381b /tests/pragmas | |
parent | 538603e01d9b0c4abd47799bbe031960ffea3610 (diff) | |
download | Nim-4bf323d6c44b329fe1955f210580a73952c081d0.tar.gz |
fixes push warnings for sempass2 (#23603)
ref https://forum.nim-lang.org/t/11590
Diffstat (limited to 'tests/pragmas')
-rw-r--r-- | tests/pragmas/tpushnotes.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pragmas/tpushnotes.nim b/tests/pragmas/tpushnotes.nim new file mode 100644 index 000000000..27ba0bec4 --- /dev/null +++ b/tests/pragmas/tpushnotes.nim @@ -0,0 +1,13 @@ +discard """ + matrix: "--warningAsError:HoleEnumConv" +""" + +type + e = enum + a = 0 + b = 2 + +var i: int +{.push warning[HoleEnumConv]:off.} +discard i.e +{.pop.} |