Files
Nim/tests/msgs/tdeprecated2.nim
metagn b97d603cd0 some test cleanups & category reorganization (#22010)
* clean up some test categories

* mention exact slice issue

* magics into system

* move trangechecks into overflow

* move tmemory to system

* try fix CI

* try fix CI

* final CI fix
2023-06-06 06:54:07 +02:00

43 lines
629 B
Nim

discard """
nimout: '''
tdeprecated2.nim(23, 3) Warning: a is deprecated [Deprecated]
tdeprecated2.nim(30, 11) Warning: asdf; enum 'Foo' which contains field 'a' is deprecated [Deprecated]
tdeprecated2.nim(40, 16) Warning: use fooX instead; fooA is deprecated [Deprecated]
end
'''
"""
## line 15
block:
var
a {.deprecated.}: array[0..11, int]
a[8] = 1
block t10111:
type
Foo {.deprecated: "asdf" .} = enum
a
var _ = a
block: # issue #8063
type
Foo = enum
fooX
const fooA {.deprecated: "use fooX instead".} = fooX
let
foo: Foo = fooA
echo foo
static: echo "end"