blob: 1a186a0a2431ef1cd5f8e56fb3d6a0439457d15c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
class Test {
def byNameFunc(f: (=> (() => Any)) => Any): Unit = ()
def test = {
// "value apply is not a member of => () => Any"
byNameFunc(z => z())
// okay
byNameFunc(z => z.apply())
byNameFunc(z => {val f = z; f()})
}
}
|