summary refs log tree commit diff stats
path: root/tests/template/tsymchoicefield.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template/tsymchoicefield.nim')
-rw-r--r--tests/template/tsymchoicefield.nim11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/template/tsymchoicefield.nim b/tests/template/tsymchoicefield.nim
deleted file mode 100644
index 4483c2aa2..000000000
--- a/tests/template/tsymchoicefield.nim
+++ /dev/null
@@ -1,11 +0,0 @@
-type Foo = object
-  len: int
-
-var f = Foo(len: 40)
-
-template getLen(f: Foo): int = f.len
-
-echo f.getLen
-# This fails, because `len` gets the nkOpenSymChoice
-# treatment inside the template early pass and then
-# it can't be recognized as a field anymore