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.
11 lines
369 B
Kotlin
Vendored
11 lines
369 B
Kotlin
Vendored
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
|
|
|
|
class Rule(val apply: () -> Unit)
|
|
|
|
fun foo() {
|
|
val rule: Rule? = Rule { }
|
|
rule?.apply()
|
|
val apply = rule?.apply
|
|
<error descr="[UNSAFE_IMPLICIT_INVOKE_CALL] Reference has a nullable type 'kotlin/Function0<kotlin/Unit>?', use explicit \"?.invoke\" to make a function-like call instead.">apply</error>()
|
|
}
|