diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/array/tarrayplus.nim | 2 | ||||
-rw-r--r-- | tests/generics/tbadgenericlambda.nim | 2 | ||||
-rw-r--r-- | tests/generics/tmetafield.nim | 6 | ||||
-rw-r--r-- | tests/showoff/tdrdobbs_examples.nim | 2 | ||||
-rw-r--r-- | tests/template/ttempl5.nim | 11 | ||||
-rw-r--r-- | tests/vm/tstaticprintseq.nim | 6 |
6 files changed, 22 insertions, 7 deletions
diff --git a/tests/array/tarrayplus.nim b/tests/array/tarrayplus.nim index 9e08bbb0a..0ea349f4f 100644 --- a/tests/array/tarrayplus.nim +++ b/tests/array/tarrayplus.nim @@ -1,5 +1,5 @@ discard """ - errmsg: "type mismatch: got (array[0..2, float], array[0..1, float])" + errormsg: "type mismatch: got (array[0..2, float], array[0..1, float])" """ proc `+`*[R, T] (v1, v2: array[R, T]): array[R, T] = diff --git a/tests/generics/tbadgenericlambda.nim b/tests/generics/tbadgenericlambda.nim index 38e7f6cd7..2ab8e724d 100644 --- a/tests/generics/tbadgenericlambda.nim +++ b/tests/generics/tbadgenericlambda.nim @@ -1,5 +1,5 @@ discard """ - errmsg: "nested proc can have generic parameters only when" + errormsg: "nested proc can have generic parameters only when" line: 6 """ diff --git a/tests/generics/tmetafield.nim b/tests/generics/tmetafield.nim index 8e7f26549..f2fac8fdd 100644 --- a/tests/generics/tmetafield.nim +++ b/tests/generics/tmetafield.nim @@ -1,8 +1,8 @@ discard """ cmd: "nimrod check $# $#" - errmsg: "'proc' is not a concrete type" - errmsg: "'Foo' is not a concrete type." - errmsg: "invalid type: 'TBaseMed'" + errormsg: "'proc' is not a concrete type" + errormsg: "'Foo' is not a concrete type." + errormsg: "invalid type: 'TBaseMed'" """ type diff --git a/tests/showoff/tdrdobbs_examples.nim b/tests/showoff/tdrdobbs_examples.nim index 0b3d86a05..8a39990ba 100644 --- a/tests/showoff/tdrdobbs_examples.nim +++ b/tests/showoff/tdrdobbs_examples.nim @@ -1,7 +1,7 @@ discard """ output: '''108 11 -1 1936 -4.0000000000000002e-001 +4.0000000000000002e-01 true truefalse''' """ diff --git a/tests/template/ttempl5.nim b/tests/template/ttempl5.nim index 1f2378780..a020a8e2c 100644 --- a/tests/template/ttempl5.nim +++ b/tests/template/ttempl5.nim @@ -16,3 +16,14 @@ get_next_ident() #identifier expected, but found '(open|open|open)' + +#bug #880 (also example in the manual!) + +template typedef(name: expr, typ: typedesc) {.immediate.} = + type + `T name`* {.inject.} = typ + `P name`* {.inject.} = ref `T name` + +typedef(myint, int) +var x: PMyInt + diff --git a/tests/vm/tstaticprintseq.nim b/tests/vm/tstaticprintseq.nim index 3dfd0048d..b002d366c 100644 --- a/tests/vm/tstaticprintseq.nim +++ b/tests/vm/tstaticprintseq.nim @@ -17,7 +17,8 @@ bb 22 aa bb -24''' +24 +2147483647 2147483647''' """ const s = @[1,2,3] @@ -76,3 +77,6 @@ const y = fac() static: echo y +static: + var foo2 = int32.high + echo foo2, " ", int32.high |