summary refs log tree commit diff stats
path: root/tests/caas/issue_477_dynamic_dispatch.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/caas/issue_477_dynamic_dispatch.nim')
-rw-r--r--tests/caas/issue_477_dynamic_dispatch.nim19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/caas/issue_477_dynamic_dispatch.nim b/tests/caas/issue_477_dynamic_dispatch.nim
deleted file mode 100644
index 6e6b21ef0..000000000
--- a/tests/caas/issue_477_dynamic_dispatch.nim
+++ /dev/null
@@ -1,19 +0,0 @@
-type
-  TThing = object of TObject
-  TUnit = object of TThing
-    x: int
-
-method collide(a, b: TThing) {.inline.} =
-  quit "to override!"
-
-method collide(a: TThing, b: TUnit) {.inline.} =
-  echo "collide1"
-
-method collide(a: TUnit, b: TThing) {.inline.} =
-  echo "collide2"
-
-var
-  a, b: TUnit
-
-when isMainModule:
-  collide(a, b) # output: 2