summaryrefslogtreecommitdiff
path: root/test/files/run/t9489/test.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t9489/test.scala')
-rw-r--r--test/files/run/t9489/test.scala10
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)
+ }
+}