summary refs log tree commit diff stats
path: root/tests/generics/tconfusing_arrow.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generics/tconfusing_arrow.nim')
-rw-r--r--tests/generics/tconfusing_arrow.nim15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/generics/tconfusing_arrow.nim b/tests/generics/tconfusing_arrow.nim
deleted file mode 100644
index f63a874e0..000000000
--- a/tests/generics/tconfusing_arrow.nim
+++ /dev/null
@@ -1,15 +0,0 @@
-import algorithm, future
-
-type Deck = object
-  value: int
-
-proc sort(h: var seq[Deck]) =
-  # works:
-  h.sort(proc (x, y: Deck): auto =
-    cmp(x.value, y.value))
-  # fails:
-  h.sort((x, y: Deck) => cmp(ord(x.value), ord(y.value)))
-
-var player: seq[Deck] = @[]
-
-player.sort()