Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/protectedVisibility/smartcastOnExtensionReceiver.kt
T

10 lines
175 B
Kotlin
Vendored

abstract class A<T : Any> {
abstract protected fun T.foo()
fun bar(x: T?) {
if (x != null) {
<!DEBUG_INFO_SMARTCAST!>x<!>.foo()
}
}
}