e6b5cb5216
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
20 lines
462 B
Kotlin
Vendored
20 lines
462 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
|
|
interface A
|
|
|
|
object B
|
|
class C
|
|
|
|
fun test() {
|
|
val interface_as_fun = <!RESOLUTION_TO_CLASSIFIER!>A<!>()
|
|
val interface_as_val = <!NO_COMPANION_OBJECT!>A<!>
|
|
|
|
val object_as_fun = <!FUNCTION_EXPECTED!>B<!>()
|
|
val class_as_val = <!NO_COMPANION_OBJECT!>C<!>
|
|
}
|
|
|
|
fun <T> bar() {
|
|
val typeParameter_as_val = <!TYPE_PARAMETER_IS_NOT_AN_EXPRESSION!>T<!>
|
|
val typeParameter_as_fun = <!RESOLUTION_TO_CLASSIFIER!>T<!>()
|
|
}
|