diff options
Diffstat (limited to 'tests/run/tofopr.nim')
-rwxr-xr-x | tests/run/tofopr.nim | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/run/tofopr.nim b/tests/run/tofopr.nim deleted file mode 100755 index f9c21ad16..000000000 --- a/tests/run/tofopr.nim +++ /dev/null @@ -1,26 +0,0 @@ -discard """ - file: "tofopr.nim" - output: "falsetrue" -""" -# Test is operator - -type - TMyType = object - len: int - data: string - - TOtherType = object of TMyType - -proc p(x: TMyType): bool = - return x of TOtherType - -var - m: TMyType - n: TOtherType - -write(stdout, p(m)) -write(stdout, p(n)) - -#OUT falsetrue - - |