b7d8e879a6
In particular, this commit includes: * Attempt to abstract access to FirSourceElement via FirModifier * Add more visit functions to DeclarationCheckersDiagnosticComponent * Add messages+factories for 4 modifier-related errors and warnings * Introduce FirModifierChecker
13 lines
299 B
Kotlin
Vendored
13 lines
299 B
Kotlin
Vendored
interface My {
|
|
private val x: Int
|
|
<!INCOMPATIBLE_MODIFIERS!>private<!> <!INCOMPATIBLE_MODIFIERS!>abstract<!> val xx: Int
|
|
private val xxx: Int
|
|
get() = 0
|
|
final val y: Int
|
|
final val yy: Int
|
|
get() = 1
|
|
private fun foo(): Int
|
|
// ok
|
|
private fun bar() = 42
|
|
}
|