summary refs log tree commit diff stats
path: root/tests/generics
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-08-08 15:43:05 +0200
committerAraq <rumpf_a@web.de>2018-08-08 15:43:05 +0200
commit00ef2d6693cdb927bbdcbf20664beb6905effa7f (patch)
tree0312e4cf01bef2d0abf5b606c3587872cc4f0dcf /tests/generics
parent640b30a47f89cc488d3fdea9ea1a936c18538b8e (diff)
downloadNim-00ef2d6693cdb927bbdcbf20664beb6905effa7f.tar.gz
make test green again
Diffstat (limited to 'tests/generics')
-rw-r--r--tests/generics/tobjecttyperel.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/generics/tobjecttyperel.nim b/tests/generics/tobjecttyperel.nim
index 8c8f90098..6c2184cc2 100644
--- a/tests/generics/tobjecttyperel.nim
+++ b/tests/generics/tobjecttyperel.nim
@@ -2,8 +2,8 @@ discard """
   output: '''(peel: 0, color: 15)
 (color: 15)
 17
-(width: 0.0, taste: nil, color: 13)
-(width: 0.0, taste: nil, color: 15)
+(width: 0.0, taste: "", color: 13)
+(width: 0.0, taste: "", color: 15)
 cool'''
 """
 
@@ -11,16 +11,16 @@ cool'''
 type
   BaseFruit[T] = object of RootObj
     color: T
-    
+
   MidLevel[T] = object of BaseFruit[T]
-  
+
   Mango = object of MidLevel[int]
     peel: int
-    
+
   Peach[X, T, Y] = object of T
     width: X
     taste: Y
-    
+
 proc setColor[T](self: var BaseFruit[T]) =
   self.color = 15