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)

View file

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