Respect receiver-dependent visibility when selecting smart-cast type
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
abstract class A<T : Any> {
|
||||
abstract protected fun T.foo()
|
||||
|
||||
fun bar(x: T?) {
|
||||
if (x != null) {
|
||||
<!DEBUG_INFO_SMARTCAST!>x<!>.foo()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user