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.nim12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/template/tsymchoicefield.nim b/tests/template/tsymchoicefield.nim
deleted file mode 100644
index ab05500bf..000000000
--- a/tests/template/tsymchoicefield.nim
+++ /dev/null
@@ -1,12 +0,0 @@
-type Foo = object
-  len: int
-
-var f = Foo(len: 40)
-
-template getLen(f: Foo): expr = 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
-