From c84ff2958558692d63d87c2087e2963532e9d453 Mon Sep 17 00:00:00 2001 From: Tom Grigg Date: Mon, 8 Feb 2021 19:12:26 -0800 Subject: [PATCH] Add regression test for #10301 --- tests/pos-java-interop/i10301/Bar.java | 1 + tests/pos-java-interop/i10301/Foo.java | 1 + tests/pos-java-interop/i10301/Quux.java | 4 ++++ tests/pos-java-interop/i10301/Test.scala | 5 +++++ 4 files changed, 11 insertions(+) create mode 100644 tests/pos-java-interop/i10301/Bar.java create mode 100644 tests/pos-java-interop/i10301/Foo.java create mode 100644 tests/pos-java-interop/i10301/Quux.java create mode 100644 tests/pos-java-interop/i10301/Test.scala diff --git a/tests/pos-java-interop/i10301/Bar.java b/tests/pos-java-interop/i10301/Bar.java new file mode 100644 index 000000000000..1f4ae43c0202 --- /dev/null +++ b/tests/pos-java-interop/i10301/Bar.java @@ -0,0 +1 @@ +public interface Bar {} diff --git a/tests/pos-java-interop/i10301/Foo.java b/tests/pos-java-interop/i10301/Foo.java new file mode 100644 index 000000000000..23043c19c9b6 --- /dev/null +++ b/tests/pos-java-interop/i10301/Foo.java @@ -0,0 +1 @@ +public interface Foo {} diff --git a/tests/pos-java-interop/i10301/Quux.java b/tests/pos-java-interop/i10301/Quux.java new file mode 100644 index 000000000000..b5863669f89c --- /dev/null +++ b/tests/pos-java-interop/i10301/Quux.java @@ -0,0 +1,4 @@ +public class Quux { + public void baz(A x) {} + public void baz(B x) {} +} diff --git a/tests/pos-java-interop/i10301/Test.scala b/tests/pos-java-interop/i10301/Test.scala new file mode 100644 index 000000000000..e96c97e029c8 --- /dev/null +++ b/tests/pos-java-interop/i10301/Test.scala @@ -0,0 +1,5 @@ +trait Test { + def q: Quux + def f: Foo + q.baz[Foo](f) +}