diff options
Diffstat (limited to 'tests/generics')
-rw-r--r-- | tests/generics/tmacroinjectedsymwarning.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/generics/tmacroinjectedsymwarning.nim b/tests/generics/tmacroinjectedsymwarning.nim index 4b2ae4f7e..77119004b 100644 --- a/tests/generics/tmacroinjectedsymwarning.nim +++ b/tests/generics/tmacroinjectedsymwarning.nim @@ -46,13 +46,13 @@ proc f(): Result[int, cstring] = proc g(T: type): string = let x = f().valueOr: - {.push warningAsError[GenericsIgnoredInjection]: on.} + {.push warningAsError[IgnoredSymbolInjection]: on.} # test spurious error discard true let _ = f {.pop.} return $error #[tt.Warning - ^ a new symbol 'error' has been injected during instantiation of g, however 'error' [enumField declared in tmacroinjectedsymwarning.nim(6, 3)] captured at the proc declaration will be used instead; either enable --experimental:genericsOpenSym to use the injected symbol or `bind` this captured symbol explicitly [GenericsIgnoredInjection]]# + ^ a new symbol 'error' has been injected during template or generic instantiation, however 'error' [enumField declared in tmacroinjectedsymwarning.nim(6, 3)] captured at the proc declaration will be used instead; either enable --experimental:openSym to use the injected symbol, or `bind` this captured symbol explicitly [IgnoredSymbolInjection]]# "ok" |