blob: 1b745af865159e914904d4c2e02f1040509ec4ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
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)
}
}
|