diff options
Diffstat (limited to 'test/files/run/t9489/test.scala')
-rw-r--r-- | test/files/run/t9489/test.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t9489/test.scala b/test/files/run/t9489/test.scala new file mode 100644 index 0000000000..1b745af865 --- /dev/null +++ b/test/files/run/t9489/test.scala @@ -0,0 +1,10 @@ +class T { + def f(a: A) = g(a.b) // was: "found Int, required B" + def g(b: => B) = null +} + +object Test extends T { + def main(args: Array[String]): Unit = { + f(new A) + } +} |