Improve error message for inaccessible invisible_fake members

#KT-8989 Fixed
This commit is contained in:
Alexander Udalov
2016-07-21 15:59:23 +03:00
parent a92f0a0446
commit b6b2303aa7
7 changed files with 18 additions and 12 deletions
+2 -2
View File
@@ -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()
}
}