diff options
Diffstat (limited to 'tests/compile/tgenericrefs.nim')
-rw-r--r-- | tests/compile/tgenericrefs.nim | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/compile/tgenericrefs.nim b/tests/compile/tgenericrefs.nim deleted file mode 100644 index ef931dfa7..000000000 --- a/tests/compile/tgenericrefs.nim +++ /dev/null @@ -1,26 +0,0 @@ -type - PA[T] = ref TA[T] - TA[T] = object - field: T -var a: PA[string] -new(a) -a.field = "some string" - -when false: - # 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 - - |