blob: b241cd648563d336fb7ddef896f7af46722feba6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
class C {
private val a = 0
def getA = a
}
class D(c: C) {
def a = c.getA
}
object Test {
implicit def c2d(c: C): D = new D(c)
val c = new C
(c: D).a // works
c.a // error
}
// to fix this we'd need to check accessibility in the isMatchedBy of a SelectionProto,
// so that we can insert an implicit if this does not work. Need to check performance impact of this.
|