mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
This commit is contained in:
committed by
Andreas Rumpf
parent
fa058773db
commit
ec6e5681da
@@ -1,8 +1,21 @@
|
||||
discard """
|
||||
nimout: '''tdeprecated.nim(10, 3) Warning: a is deprecated [Deprecated]
|
||||
tdeprecated.nim(17, 11) Warning: asdf; enum 'Foo' which contains field 'a' is deprecated [Deprecated]
|
||||
nimout: '''
|
||||
tdeprecated.nim(23, 3) Warning: a is deprecated [Deprecated]
|
||||
tdeprecated.nim(30, 11) Warning: asdf; enum 'Foo' which contains field 'a' is deprecated [Deprecated]
|
||||
tdeprecated.nim(40, 16) Warning: use fooX instead; fooA is deprecated [Deprecated]
|
||||
end
|
||||
'''
|
||||
"""
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## line 15
|
||||
|
||||
|
||||
|
||||
block:
|
||||
var
|
||||
a {.deprecated.}: array[0..11, int]
|
||||
@@ -17,3 +30,13 @@ block t10111:
|
||||
var _ = a
|
||||
|
||||
|
||||
block: # issue #8063
|
||||
type
|
||||
Foo = enum
|
||||
fooX
|
||||
|
||||
{.deprecated: [fooA: fooX].}
|
||||
let
|
||||
foo: Foo = fooA
|
||||
echo foo
|
||||
static: echo "end"
|
||||
|
||||
Reference in New Issue
Block a user