Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/local/LocalClassInitializer.kt
Evgeny Gerashchenko 897854b3dc KT-6671 Report unused constructor parameters
#KT-6671 fixed
2015-01-27 22:38:27 +03:00

16 lines
274 B
Kotlin

// KT-338 Support.smartcasts in nested declarations
fun f(a: Any?) {
if (a is B) {
class C : X(<!DEBUG_INFO_SMARTCAST!>a<!>) {
{
<!DEBUG_INFO_SMARTCAST!>a<!>.foo()
}
}
}
}
trait B {
fun foo() {}
}
open class X(<!UNUSED_PARAMETER!>b<!>: B)