diff options
Diffstat (limited to 'tests/deprecated')
-rw-r--r-- | tests/deprecated/importme.nim | 10 | ||||
-rw-r--r-- | tests/deprecated/tannot.nim | 9 | ||||
-rw-r--r-- | tests/deprecated/tdeprecated.nim | 42 | ||||
-rw-r--r-- | tests/deprecated/tmessages.nim | 10 | ||||
-rw-r--r-- | tests/deprecated/tmodule1.nim | 23 |
5 files changed, 0 insertions, 94 deletions
diff --git a/tests/deprecated/importme.nim b/tests/deprecated/importme.nim deleted file mode 100644 index 0a9c6e37d..000000000 --- a/tests/deprecated/importme.nim +++ /dev/null @@ -1,10 +0,0 @@ -type - Ty* {.deprecated.} = uint32 - Ty1* {.deprecated: "hello".} = uint32 - -var aVar* {.deprecated.}: char - -proc aProc*() {.deprecated.} = discard -proc aProc1*() {.deprecated: "hello".} = discard - -{.deprecated: "goodbye".} diff --git a/tests/deprecated/tannot.nim b/tests/deprecated/tannot.nim deleted file mode 100644 index d14f6cc23..000000000 --- a/tests/deprecated/tannot.nim +++ /dev/null @@ -1,9 +0,0 @@ -discard """ - nimout: '''tannot.nim(9, 1) Warning: efgh; foo1 is deprecated [Deprecated] -tannot.nim(9, 8) Warning: abcd; foo is deprecated [Deprecated] -''' -""" - -let foo* {.deprecated: "abcd".} = 42 -var foo1* {.deprecated: "efgh".} = 42 -foo1 = foo diff --git a/tests/deprecated/tdeprecated.nim b/tests/deprecated/tdeprecated.nim deleted file mode 100644 index ba8d579ad..000000000 --- a/tests/deprecated/tdeprecated.nim +++ /dev/null @@ -1,42 +0,0 @@ -discard """ - 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] - - a[8] = 1 - -block t10111: - type - Foo {.deprecated: "asdf" .} = enum - a - - var _ = a - - -block: # issue #8063 - type - Foo = enum - fooX - - {.deprecated: [fooA: fooX].} - let - foo: Foo = fooA - echo foo - static: echo "end" diff --git a/tests/deprecated/tmessages.nim b/tests/deprecated/tmessages.nim deleted file mode 100644 index 5884e396d..000000000 --- a/tests/deprecated/tmessages.nim +++ /dev/null @@ -1,10 +0,0 @@ -discard """ - nimout:'''tmessages.nim(10, 1) Warning: Deprecated since v1.2.0, use 'HelloZ'; hello is deprecated [Deprecated] -''' -""" - -proc hello[T](a: T) {.deprecated: "Deprecated since v1.2.0, use 'HelloZ'".} = - discard - - -hello[int](12) diff --git a/tests/deprecated/tmodule1.nim b/tests/deprecated/tmodule1.nim deleted file mode 100644 index 954836889..000000000 --- a/tests/deprecated/tmodule1.nim +++ /dev/null @@ -1,23 +0,0 @@ -discard """ - nimout: '''tmodule1.nim(11, 8) Warning: goodbye; importme is deprecated [Deprecated] -tmodule1.nim(14, 10) Warning: Ty is deprecated [Deprecated] -tmodule1.nim(17, 10) Warning: hello; Ty1 is deprecated [Deprecated] -tmodule1.nim(20, 8) Warning: aVar is deprecated [Deprecated] -tmodule1.nim(22, 3) Warning: aProc is deprecated [Deprecated] -tmodule1.nim(23, 3) Warning: hello; aProc1 is deprecated [Deprecated] -''' -""" - -import importme - -block: - var z: Ty - z = 0 -block: - var z: Ty1 - z = 0 -block: - echo aVar -block: - aProc() - aProc1() |