diff options
Diffstat (limited to 'tests/concepts/t6770.nim')
-rw-r--r-- | tests/concepts/t6770.nim | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/concepts/t6770.nim b/tests/concepts/t6770.nim deleted file mode 100644 index 1787ee670..000000000 --- a/tests/concepts/t6770.nim +++ /dev/null @@ -1,27 +0,0 @@ -discard """ -output: ''' -10 -10 -''' -""" - -type GA = concept c - c.a is int - -type A = object - a: int - -type AA = object - case exists: bool - of true: - a: int - else: - discard - -proc print(inp: GA) = - echo inp.a - -let failing = AA(exists: true, a: 10) -let working = A(a:10) -print(working) -print(failing) |