make test green again
This commit is contained in:
parent
640b30a47f
commit
00ef2d6693
1 changed files with 6 additions and 6 deletions
|
|
@ -2,8 +2,8 @@ discard """
|
||||||
output: '''(peel: 0, color: 15)
|
output: '''(peel: 0, color: 15)
|
||||||
(color: 15)
|
(color: 15)
|
||||||
17
|
17
|
||||||
(width: 0.0, taste: nil, color: 13)
|
(width: 0.0, taste: "", color: 13)
|
||||||
(width: 0.0, taste: nil, color: 15)
|
(width: 0.0, taste: "", color: 15)
|
||||||
cool'''
|
cool'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
@ -11,16 +11,16 @@ cool'''
|
||||||
type
|
type
|
||||||
BaseFruit[T] = object of RootObj
|
BaseFruit[T] = object of RootObj
|
||||||
color: T
|
color: T
|
||||||
|
|
||||||
MidLevel[T] = object of BaseFruit[T]
|
MidLevel[T] = object of BaseFruit[T]
|
||||||
|
|
||||||
Mango = object of MidLevel[int]
|
Mango = object of MidLevel[int]
|
||||||
peel: int
|
peel: int
|
||||||
|
|
||||||
Peach[X, T, Y] = object of T
|
Peach[X, T, Y] = object of T
|
||||||
width: X
|
width: X
|
||||||
taste: Y
|
taste: Y
|
||||||
|
|
||||||
proc setColor[T](self: var BaseFruit[T]) =
|
proc setColor[T](self: var BaseFruit[T]) =
|
||||||
self.color = 15
|
self.color = 15
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue