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.
17 lines
259 B
Kotlin
Vendored
17 lines
259 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// KT-3750 When without else
|
|
|
|
enum class A {
|
|
e1,
|
|
e2
|
|
}
|
|
class B(val a: A)
|
|
val B.foo: Int
|
|
get() {
|
|
// Check absence [NO_ELSE_IN_WHEN] error
|
|
return when (a) {
|
|
A.e1 -> 1
|
|
A.e2 -> 3
|
|
}
|
|
}
|