diff options
Diffstat (limited to 'tests/overload/toverl3.nim')
-rw-r--r-- | tests/overload/toverl3.nim | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/overload/toverl3.nim b/tests/overload/toverl3.nim deleted file mode 100644 index 92cfc150d..000000000 --- a/tests/overload/toverl3.nim +++ /dev/null @@ -1,20 +0,0 @@ -discard """ - file: "toverl3.nim" - output: '''m1 -tup1''' -""" - -# Tests more specific generic match: - -proc m[T](x: T) = echo "m2" -proc m[T](x: var ref T) = echo "m1" - -proc tup[S, T](x: tuple[a: S, b: ref T]) = echo "tup1" -proc tup[S, T](x: tuple[a: S, b: T]) = echo "tup2" - -var - obj: ref int - tu: tuple[a: int, b: ref bool] - -m(obj) -tup(tu) |