make tests green again
This commit is contained in:
parent
844e123061
commit
9460fcfed2
2 changed files with 3 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue