Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/bound/innerNested.kt
T
Alexander Udalov 456ba79793 Consider callable reference's LHS when resolving RHS
Previous resolution sequence (static scope, nested classes scope, receiver) and
a check against type parameters only made sense when there's a type, not an
expression, on the LHS of a callable reference. Also TransientReceiver is
incorrect in such case because private-to-this visibility check only works for
ExpressionReceiver values
2016-06-19 12:45:22 +03:00

10 lines
137 B
Kotlin
Vendored

class Outer {
class Nested
inner class Inner
}
fun test() {
Outer()::Inner
Outer()::<!UNRESOLVED_REFERENCE!>Nested<!>
}