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

11 lines
251 B
Kotlin
Vendored

open class Base(<!UNUSED_PARAMETER!>x<!>: String, <!UNUSED_PARAMETER!>y<!>: Int)
fun test(x: Any, y: Int?) {
if (x !is String) return
if (y == null) return
class Local: Base(<!DEBUG_INFO_SMARTCAST!>x<!>, <!DEBUG_INFO_SMARTCAST!>y<!>) {
}
}