summary refs log tree commit diff stats
path: root/tests/compile/tgenericrefs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tgenericrefs.nim')
-rwxr-xr-xtests/compile/tgenericrefs.nim28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/compile/tgenericrefs.nim b/tests/compile/tgenericrefs.nim
deleted file mode 100755
index 3b7940098..000000000
--- a/tests/compile/tgenericrefs.nim
+++ /dev/null
@@ -1,28 +0,0 @@
-discard """
-  disabled: true
-"""
-
-# Compiles:
-
-type 
-  TA[T] = object
-  PA[T] = ref TA[T]
-var a: PA[string]
-
-# Compiles unless you use var a: PA[string]
-type 
-  PA = ref TA
-  TA[T] = object
-
-
-# Cannot instantiate:
-type 
-  TA[T] = object
-    a: PA[T]
-  PA[T] = ref TA[T]
-
-type 
-  PA[T] = ref TA[T]
-  TA[T] = object
-
-