Files
kotlin-fork/compiler/testData/codegen/box/classes/kt1018.kt
T
2020-10-14 16:33:37 +03:00

15 lines
437 B
Kotlin
Vendored

// The IR prduced by FIR implicitly casts `null` of type `Nothing?` to type `Int` instead of `Int?` in `getColumnCount`.
public class StockMarketTableModel() {
public fun getColumnCount() : Int {
return COLUMN_TITLES?.size!!
}
companion object {
private val COLUMN_TITLES : Array<Int?> = arrayOfNulls<Int>(10)
}
}
fun box() : String = if(StockMarketTableModel().getColumnCount()==10) "OK" else "fail"