summary refs log tree commit diff stats
path: root/tests/concepts/tgraph.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/concepts/tgraph.nim')
-rw-r--r--tests/concepts/tgraph.nim29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/concepts/tgraph.nim b/tests/concepts/tgraph.nim
deleted file mode 100644
index a0177a043..000000000
--- a/tests/concepts/tgraph.nim
+++ /dev/null
@@ -1,29 +0,0 @@
-discard """
-  output: '''XY is Node
-MyGraph is Graph'''
-"""
-# bug #3452
-import math
-
-type
-    Node* = concept n
-        `==`(n, n) is bool
-
-    Graph* = concept g
-        var x: Node
-        distance(g, x, x) is float
-
-    XY* = tuple[x, y: int]
-
-    MyGraph* = object
-        points: seq[XY]
-
-if XY is Node:
-    echo "XY is Node"
-
-proc distance*( g: MyGraph, a, b: XY): float =
-    sqrt( pow(float(a.x - b.x), 2) + pow(float(a.y - b.y), 2) )
-
-if MyGraph is Graph:
-    echo "MyGraph is Graph"
-