make tests green again

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

View File

@@ -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

View File

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