aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t8197.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t8197.scala')
-rw-r--r--tests/pending/run/t8197.scala16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/pending/run/t8197.scala b/tests/pending/run/t8197.scala
deleted file mode 100644
index b510f96f1..000000000
--- a/tests/pending/run/t8197.scala
+++ /dev/null
@@ -1,16 +0,0 @@
-// SI-8197, see also SI-4592 and SI-4728
-class A
-class B
-
-class Foo(val x: A = null) {
- def this(bla: B*) = {
- this(new A)
- }
-}
-
-object Test extends dotty.runtime.LegacyApp {
- // both constructors of `Foo` are applicable. Overloading resolution
- // will eliminate the alternative that uses a default argument, therefore
- // the vararg constructor is chosen.
- assert((new Foo).x != null)
-}