FIR checker: add support diagnostic: EXPECTED_PRIVATE_DECLARATION
This commit is contained in:
committed by
Mikhail Glukhikh
parent
57c8dd86a0
commit
97241599bf
+3
-3
@@ -3,9 +3,9 @@
|
||||
// FILE: common.kt
|
||||
|
||||
expect class A {
|
||||
private fun foo()
|
||||
private val bar: String
|
||||
private fun Int.memExt(): Any
|
||||
<!EXPECTED_PRIVATE_DECLARATION!>private<!> fun foo()
|
||||
<!EXPECTED_PRIVATE_DECLARATION!>private<!> val bar: String
|
||||
<!EXPECTED_PRIVATE_DECLARATION!>private<!> fun Int.memExt(): Any
|
||||
|
||||
private class Nested
|
||||
}
|
||||
|
||||
+3
-3
@@ -2,9 +2,9 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
private expect fun foo()
|
||||
private expect val bar: String
|
||||
private expect fun Int.memExt(): Any
|
||||
<!EXPECTED_PRIVATE_DECLARATION!>private<!> expect fun foo()
|
||||
<!EXPECTED_PRIVATE_DECLARATION!>private<!> expect val bar: String
|
||||
<!EXPECTED_PRIVATE_DECLARATION!>private<!> expect fun Int.memExt(): Any
|
||||
|
||||
private expect class Foo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user