diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-11-21 12:29:58 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-11-21 12:29:58 +0100 |
commit | 9460fcfed24aeb75b5e3a1e350bae0052b208337 (patch) | |
tree | 4dda14ee9efb4bbbfb0ecb85201a40c8ee2f154a /tests | |
parent | 844e123061631d4cc5bc4300301d1865eda5a337 (diff) | |
download | Nim-9460fcfed24aeb75b5e3a1e350bae0052b208337.tar.gz |
make tests green again
Diffstat (limited to 'tests')
-rw-r--r-- | tests/concepts/tmisc_issues.nim | 6 | ||||
-rw-r--r-- | tests/misc/tatomic.nim | 12 |
2 files changed, 3 insertions, 15 deletions
diff --git a/tests/concepts/tmisc_issues.nim b/tests/concepts/tmisc_issues.nim index d9bb84a2f..662eba380 100644 --- a/tests/concepts/tmisc_issues.nim +++ b/tests/concepts/tmisc_issues.nim @@ -31,7 +31,7 @@ type ConcretePointOfFloat = object type ConcretePoint[Value] = object x, y: Value -type AbstractPointOfFloat = generic p +type AbstractPointOfFloat = concept p p.x is float and p.y is float let p1 = ConcretePointOfFloat(x: 0, y: 0) @@ -89,10 +89,10 @@ type B = object proc size(self: B): int = - return -1 + return -1 proc size(self: A): int = - return 0 + return 0 let b = B() echo b is A diff --git a/tests/misc/tatomic.nim b/tests/misc/tatomic.nim deleted file mode 100644 index f3c56ffe3..000000000 --- a/tests/misc/tatomic.nim +++ /dev/null @@ -1,12 +0,0 @@ -discard """ - file: "tatomic.nim" - line: 7 - errormsg: "identifier expected, but found 'keyword atomic'" -""" -var - atomic: int - -echo atomic - - - |