make tests green again

This commit is contained in:
Andreas Rumpf 2017-11-21 12:29:58 +01:00
commit 9460fcfed2
2 changed files with 3 additions and 15 deletions

View file

@ -31,7 +31,7 @@ type ConcretePointOfFloat = object
type ConcretePoint[Value] = object type ConcretePoint[Value] = object
x, y: Value x, y: Value
type AbstractPointOfFloat = generic p type AbstractPointOfFloat = concept p
p.x is float and p.y is float p.x is float and p.y is float
let p1 = ConcretePointOfFloat(x: 0, y: 0) let p1 = ConcretePointOfFloat(x: 0, y: 0)
@ -89,10 +89,10 @@ type
B = object B = object
proc size(self: B): int = proc size(self: B): int =
return -1 return -1
proc size(self: A): int = proc size(self: A): int =
return 0 return 0
let b = B() let b = B()
echo b is A echo b is A

View file

@ -1,12 +0,0 @@
discard """
file: "tatomic.nim"
line: 7
errormsg: "identifier expected, but found 'keyword atomic'"
"""
var
atomic: int
echo atomic