diff options
author | Miran <narimiran@users.noreply.github.com> | 2018-10-16 10:50:10 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-16 10:50:10 +0200 |
commit | 749dbce4c69224f5464908d8f714291f17aa60fa (patch) | |
tree | cc91326ef536f15d8d9aa97efab4fc8473d093c7 /tests/magics/t8693.nim | |
parent | f04c93b5dd1ee5e185f6849ad8116d08a687026d (diff) | |
download | Nim-749dbce4c69224f5464908d8f714291f17aa60fa.tar.gz |
Merge tests into a larger file (part 5 of ∞) (#9368)
* merge magics * merge metatype tests * merge method tests * merge objects tests * change `import future` to `import sugar` Nim in Action tests are left with `import future`, to ensure compatibility. * merge overload tests * merge proc tests * merge procvar tests * merge range tests * merge seq tests * merge sets tests * remove wrong assert from `tsets3` * fix `jsTests` * better fix
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) |