mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Improve error message for inaccessible invisible_fake members
#KT-8989 Fixed GitOrigin-RevId: d647255d840e529c525237fe90bd826b26218844
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ef209e7f8c
commit
7e6afebfc5
@@ -23,12 +23,12 @@ public class B: <error descr="[INVISIBLE_MEMBER] Cannot access '<init>': it is '
|
||||
fun accessA(<warning descr="[UNUSED_PARAMETER] Parameter 'a' is never used">a</warning>: A) {}
|
||||
|
||||
fun f() {
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'pri': it is 'invisible_fake' in 'B'">pri</error>()
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'pri': it is 'invisible (private in a supertype)' in 'B'">pri</error>()
|
||||
|
||||
pro()
|
||||
|
||||
pub()
|
||||
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'int': it is 'invisible_fake' in 'B'">int</error>()
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'int': it is 'invisible (private in a supertype)' in 'B'">int</error>()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ERROR: Cannot access 'p': it is 'invisible_fake' in 'A'
|
||||
// ERROR: Cannot access 'p': it is 'invisible (private in a supertype)' in 'A'
|
||||
enum class E private constructor(private val p: Int) {
|
||||
A(1) {
|
||||
override fun bar() {
|
||||
@@ -15,4 +15,4 @@ enum class E private constructor(private val p: Int) {
|
||||
}
|
||||
|
||||
internal abstract fun bar()
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ Cannot access 'InternalClass1': it is 'internal' in 'test' at line 8, column 36
|
||||
Cannot access 'InternalClass2': it is 'internal' in 'test' at line 19, column 15
|
||||
Cannot access 'InternalClassAnnotation': it is 'internal' in 'test' at line 10, column 2
|
||||
Cannot access 'InternalFileAnnotation': it is 'internal' in 'test' at line 1, column 7
|
||||
Cannot access 'member': it is 'invisible_fake' in 'ClassAA1' at line 27, column 25
|
||||
Cannot access 'member': it is 'invisible (private in a supertype)' in 'ClassAA1' at line 27, column 25
|
||||
@@ -5,4 +5,4 @@ Cannot access 'InternalClass1': it is 'internal' in 'test' at line 5, column 13
|
||||
Cannot access 'InternalClass1': it is 'internal' in 'test' at line 8, column 36
|
||||
Cannot access 'InternalClassAnnotation': it is 'internal' in 'test' at line 10, column 2
|
||||
Cannot access 'InternalTestAnnotation': it is 'internal' in 'test' at line 1, column 7
|
||||
Cannot access 'member': it is 'invisible_fake' in 'ClassAA1' at line 27, column 25
|
||||
Cannot access 'member': it is 'invisible (private in a supertype)' in 'ClassAA1' at line 27, column 25
|
||||
+1
-1
@@ -38,7 +38,7 @@ Cannot access 'A': it is 'private' in file
|
||||
Cannot access 'A': it is 'private' in file
|
||||
Cannot access 'A': it is 'private' in file
|
||||
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Any?
|
||||
Cannot access 'x': it is 'invisible_fake' in 'B'
|
||||
Cannot access 'x': it is 'invisible (private in a supertype)' in 'B'
|
||||
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Any?
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Reference in New Issue
Block a user