diff options
Diffstat (limited to 'tests/pending/run/t4287inferredMethodTypes.scala')
-rw-r--r-- | tests/pending/run/t4287inferredMethodTypes.scala | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/pending/run/t4287inferredMethodTypes.scala b/tests/pending/run/t4287inferredMethodTypes.scala new file mode 100644 index 000000000..f14e672da --- /dev/null +++ b/tests/pending/run/t4287inferredMethodTypes.scala @@ -0,0 +1,25 @@ +import scala.tools.partest.DirectTest + +object Test extends DirectTest { + + override def extraSettings: String = + s"-usejavacp -Yinfer-argument-types -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}" + + override def code = """ +class A(a: Int = A.a) + +object A { + val a = 2 +} + +class B extends A { + def this(a) = this() +} + """.trim + + override def show(): Unit = { + Console.withErr(System.out) { + compile() + } + } +}
\ No newline at end of file |