summary refs log tree commit diff stats
path: root/tests/concepts
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-11-21 12:29:58 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-11-21 12:29:58 +0100
commit9460fcfed24aeb75b5e3a1e350bae0052b208337 (patch)
tree4dda14ee9efb4bbbfb0ecb85201a40c8ee2f154a /tests/concepts
parent844e123061631d4cc5bc4300301d1865eda5a337 (diff)
downloadNim-9460fcfed24aeb75b5e3a1e350bae0052b208337.tar.gz
make tests green again
Diffstat (limited to 'tests/concepts')
-rw-r--r--tests/concepts/tmisc_issues.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/concepts/tmisc_issues.nim b/tests/concepts/tmisc_issues.nim
index d9bb84a2f..662eba380 100644
--- a/tests/concepts/tmisc_issues.nim
+++ b/tests/concepts/tmisc_issues.nim
@@ -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