From 2ac9525b658b9aa7f2e4876b85713665a597fec9 Mon Sep 17 00:00:00 2001 From: Chris Kipp Date: Mon, 15 May 2023 13:50:46 +0200 Subject: [PATCH] test: add in a regression test for #14096 [skip community_build] closes #14096 --- tests/pos/i14096.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pos/i14096.scala diff --git a/tests/pos/i14096.scala b/tests/pos/i14096.scala new file mode 100644 index 000000000000..59365231b121 --- /dev/null +++ b/tests/pos/i14096.scala @@ -0,0 +1,7 @@ +// https://github.com/lampepfl/dotty/issues/14096 +object Test: + object Forte: + def test[T](i: Int, config: String = ""): Int = 1 + def test[T](i: String): Int = 2 + + Forte.test[Int](1)