diff options
Diffstat (limited to 'tests/reject/tadrdisc.nim')
-rwxr-xr-x | tests/reject/tadrdisc.nim | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/reject/tadrdisc.nim b/tests/reject/tadrdisc.nim deleted file mode 100755 index a7118455f..000000000 --- a/tests/reject/tadrdisc.nim +++ /dev/null @@ -1,16 +0,0 @@ -# Test that the address of a dicriminants cannot be taken - -type - TKind = enum ka, kb, kc - TA = object - case k: TKind - of ka: x, y: int - of kb: a, b: string - of kc: c, d: float - -proc setKind(k: var TKind) = - k = kc - -var a: TA -setKind(a.k) #ERROR_MSG for a 'var' type a variable needs to be passed - |