diff options
author | metagn <metagngn@gmail.com> | 2022-12-06 11:44:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 09:44:26 +0100 |
commit | 6d8cf25bd7d9d0836c7c894cffae2cdb4f6a2503 (patch) | |
tree | e47cdd7a93bc2ee7b67376bb5bee911322fb639a /tests/template | |
parent | 739e1badb6e48741e28420739769d3714ac6ceda (diff) | |
download | Nim-6d8cf25bd7d9d0836c7c894cffae2cdb4f6a2503.tar.gz |
deprecate `do:` meaning `do ():` + misc cleanup (#20927)
* test disable do: block lambda lifting * fix last test [skip ci] * deprecate `do:` meaning `do ():` + misc cleanup closes https://github.com/nim-lang/RFCs/issues/486 * oops * fix * no idea what could be causing nimsuggest failure other than this * ensure ci works
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/tredefinition_override.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/template/tredefinition_override.nim b/tests/template/tredefinition_override.nim index 0bda4025b..7ae232bba 100644 --- a/tests/template/tredefinition_override.nim +++ b/tests/template/tredefinition_override.nim @@ -1,4 +1,4 @@ -{.push warningAsError[TemplateRedefinition]: on.} +{.push warningAsError[ImplicitTemplateRedefinition]: on.} doAssert not (compiles do: template foo(): int = 1 |