summary refs log tree commit diff stats
path: root/tests/proc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/proc')
-rw-r--r--tests/proc/tdefaultvalueprocast.nim50
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/proc/tdefaultvalueprocast.nim b/tests/proc/tdefaultvalueprocast.nim
deleted file mode 100644
index cc5c4df25..000000000
--- a/tests/proc/tdefaultvalueprocast.nim
+++ /dev/null
@@ -1,50 +0,0 @@
-discard """
-  nimout: '''
-ProcDef
-  Sym "foo"
-  Empty
-  Empty
-  FormalParams
-    Empty
-    IdentDefs
-      Sym "x"
-      Empty
-      Call
-        Sym "none"
-        Sym "Natural"
-  Empty
-  Empty
-  DiscardStmt
-    Empty
-ProcDef
-  Sym "example"
-  Empty
-  Empty
-  FormalParams
-    Empty
-    IdentDefs
-      Sym "a"
-      Empty
-      Sym "thing"
-  Empty
-  Empty
-  DiscardStmt
-    TupleConstr
-      Sym "a"
-      Sym "thing"
-'''
-"""
-
-import options, macros
-
-macro typedTree(n: typed): untyped =
-  result = n
-  echo treeRepr n
-
-# issue #19118
-proc foo(x = none(Natural)) {.typedTree.} = discard
-
-# issue #12942
-var thing = 2
-proc example(a = thing) {.typedTree.} =
-  discard (a, thing)