Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/ea81649_errorPropertyLHS.fir.kt
T
Mikhail Glukhikh 0804c6a0f3 [FIR] Introduce TYPE_ARGUMENTS_NOT_ALLOWED & some other type errors
This commit introduces several different things, in particular:
- check type arguments in expressions
- new TypeArgumentList node to deal with diagnostic source
- ConeDiagnostic was moved to fir:cones
- ConeIntermediateDiagnostic to use in inference (?) without reporting
- detailed diagnostics on error type
2020-08-02 18:19:44 +03:00

21 lines
553 B
Kotlin
Vendored

// Different modules are important for this test because otherwise everything is analyzed at once and some errors
// already exist in the binding context when we're analyzing "User::surname".
// (The assertion at DoubleColonExpressionResolver.checkNoExpressionOnLHS is only performed when there are no errors in the binding context)
// MODULE: m1
// FILE: bar.kt
fun <T> bar(ff: <!OTHER_ERROR!>Err<!>.() -> Unit) {
}
// MODULE: m2(m1)
// FILE: foo.kt
data class User(val surname: String)
fun foo() {
bar<String> {
User::surname
}
}