105611679e
Compiler plugins (AllOpen, for example) can modify the status of a declaration, including visibility and modality. If we observe them without enforcing STATUS resolve, we risk to see incorrect information, which in turn can lead to false negatives/positives in inspections/intentions. Add test for light classes. See KT-58503 description for the explanation how the initial problem was influencing Spring inspections from intellij repository. ^KT-58503 Fixed
23 lines
418 B
Kotlin
Vendored
23 lines
418 B
Kotlin
Vendored
// test.BaseClass
|
|
// WITH_FIR_TEST_COMPILER_PLUGIN
|
|
// IGNORE_LIBRARY_EXCEPTIONS: KT-58535
|
|
// FILE: main.kt
|
|
package test
|
|
|
|
import org.jetbrains.kotlin.fir.plugin.AllOpen
|
|
|
|
@AllOpen
|
|
class BaseClass {
|
|
fun function() {}
|
|
|
|
var prop: Int = 42
|
|
}
|
|
|
|
// FILE: AllOpen.kt
|
|
package org.jetbrains.kotlin.fir.plugin
|
|
|
|
/**
|
|
* Imitates AllOpen annotation to trigger AllOpenMatcherBasedStatusTransformer
|
|
*/
|
|
annotation class AllOpen
|