diff options
Diffstat (limited to 'tests/magics/t8693.nim')
-rw-r--r-- | tests/magics/t8693.nim | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/magics/t8693.nim b/tests/magics/t8693.nim deleted file mode 100644 index 71468116b..000000000 --- a/tests/magics/t8693.nim +++ /dev/null @@ -1,35 +0,0 @@ -discard """ - output: '''true -false -true -false -false -true -true -false -true -true -false -true -true -false -''' -""" - -type Foo = int | float - -proc bar(t1, t2: typedesc): bool = - echo (t1 is t2) - (t2 is t1) - -proc bar[T](x: T, t2: typedesc): bool = - echo (T is t2) - (t2 is T) - -echo bar(int, Foo) -echo bar(4, Foo) -echo bar(any, int) -echo bar(int, any) -echo bar(Foo, Foo) -echo bar(any, Foo) -echo bar(Foo, any) |