summary refs log tree commit diff stats
path: root/tests/implicit/timplicit.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/implicit/timplicit.nim')
-rw-r--r--tests/implicit/timplicit.nim49
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/implicit/timplicit.nim b/tests/implicit/timplicit.nim
deleted file mode 100644
index bb701249c..000000000
--- a/tests/implicit/timplicit.nim
+++ /dev/null
@@ -1,49 +0,0 @@
-discard """
-  output: '''
-1
-2
-3
-4
-2
-88
-timplicit done
-'''
-"""
-
-
-for x in [1, 2, 3, 4]:
-  echo x
-
-
-type
-  TValue* {.pure, final.} = object of RootObj
-    a: int
-  PValue = ref TValue
-  PPValue = ptr PValue
-
-
-var x: PValue
-new x
-var sp: PPValue = addr x
-
-sp.a = 2
-if sp.a == 2: echo 2  # with sp[].a the error is gone
-
-# Test the new auto-deref a little
-
-{.experimental.}
-
-proc p(x: var int; y: int) = x += y
-
-block:
-  var x: ref int
-  new(x)
-
-  x.p(44)
-
-  var indirect = p
-  x.indirect(44)
-
-  echo x[]
-
-  echo "timplicit done"
-04-09 17:55:18 -0700 1045' href='/akkartik/mu/commit/cpp/.traces/break_cascading?h=main&id=442a33019c03480612290b4741b07a0caa310d3d'>442a3301 ^
3d45bf38 ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17