f38c0cf348
Similarly to FIR diagnostic tests. This commit enable all available test data and check the reported error messages by FIR. This helps identify some issues in formatting of FIR diagnostics. The changes on the test file are mechanically generated. Failed tests are disabled with `// IGNORE_FIR` and are re-enabled in the second commit.
16 lines
407 B
Kotlin
Vendored
16 lines
407 B
Kotlin
Vendored
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
|
|
|
|
package qualified_expressions
|
|
|
|
fun test(s: IntRange?) {
|
|
val a: Int = s?.start
|
|
val b: Int? = s?.start
|
|
val c: Int = s?.start ?: -11
|
|
val d: Int = s?.start ?: "empty"
|
|
val e: String = s?.start ?: "empty"
|
|
val f: Int = s?.endInclusive ?: b ?: 1
|
|
val g: Boolean? = e.startsWith("s")//?.length
|
|
}
|
|
|
|
fun String.startsWith(s: String): Boolean = true
|