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/tconst.nim | 8 | ||||
-rw-r--r-- | tests/deprecated/tdeprecated.nim | 42 | ||||
-rw-r--r-- | tests/deprecated/tequalhook.nim | 11 | ||||
-rw-r--r-- | tests/deprecated/tmessages.nim | 10 | ||||
-rw-r--r-- | tests/deprecated/tmodule1.nim | 33 |
7 files changed, 0 insertions, 123 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/tconst.nim b/tests/deprecated/tconst.nim deleted file mode 100644 index 51eb6cb0e..000000000 --- a/tests/deprecated/tconst.nim +++ /dev/null @@ -1,8 +0,0 @@ -discard """ - nimout: ''' -tconst.nim(8, 9) Warning: abcd; foo is deprecated [Deprecated] -''' -""" - -const foo* {.deprecated: "abcd".} = 42 -discard 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/tequalhook.nim b/tests/deprecated/tequalhook.nim deleted file mode 100644 index 79ee835f8..000000000 --- a/tests/deprecated/tequalhook.nim +++ /dev/null @@ -1,11 +0,0 @@ -discard """ - errormsg: "Overriding `=` hook is deprecated; Override `=copy` hook instead" - matrix: "--warningAsError[Deprecated]:on" -""" - -type - SharedString = object - data: string - -proc `=`(x: var SharedString, y: SharedString) = - discard \ No newline at end of file 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 f26e4ce3f..000000000 --- a/tests/deprecated/tmodule1.nim +++ /dev/null @@ -1,33 +0,0 @@ -discard """ - matrix: "--hint:all:off" - nimoutFull: true - nimout: ''' -tmodule1.nim(21, 8) Warning: goodbye; importme is deprecated [Deprecated] -tmodule1.nim(24, 10) Warning: Ty is deprecated [Deprecated] -tmodule1.nim(27, 10) Warning: hello; Ty1 is deprecated [Deprecated] -tmodule1.nim(30, 8) Warning: aVar is deprecated [Deprecated] -tmodule1.nim(32, 3) Warning: aProc is deprecated [Deprecated] -tmodule1.nim(33, 3) Warning: hello; aProc1 is deprecated [Deprecated] -''' -""" - - - - - - - -# line 20 -import importme - -block: - var z: Ty - z = 0 -block: - var z: Ty1 - z = 0 -block: - echo aVar -block: - aProc() - aProc1() |