aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t8197b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t8197b.scala')
-rw-r--r--tests/run/t8197b.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/t8197b.scala b/tests/run/t8197b.scala
new file mode 100644
index 000000000..a9012ddf9
--- /dev/null
+++ b/tests/run/t8197b.scala
@@ -0,0 +1,8 @@
+object O {
+ def foo[T](t: T) = 0
+ def foo(s: String)(implicit i: DummyImplicit = null) = 1
+}
+
+object Test extends dotty.runtime.LegacyApp {
+ assert(O.foo("") == 1)
+}