Files
kotlin-fork/idea/testData/quickfix/increaseVisibility/invisibleFake/methodToNotProtected.kt
T
Mikhail Glukhikh c084eefb65 Fix a bunch of IDE quick-fix tests (related to "convert to run/...")
These actions became available more often some days ago
2019-02-25 10:37:46 +03:00

17 lines
313 B
Kotlin
Vendored

// "Make 'doSth' protected" "false"
// ACTION: Make 'doSth' public
// ACTION: Make 'doSth' internal
// ACTION: Convert to run
// ACTION: Convert to with
// ERROR: Cannot access 'doSth': it is private in 'A'
class A {
private fun doSth() {
}
}
class B {
fun bar() {
A().<caret>doSth()
}
}