Files
kotlin-fork/idea/jvm-debugger/jvm-debugger-test/testData/evaluation/singleBreakpoint/protectedMember.kt
T
2019-10-08 19:13:55 +09:00

24 lines
424 B
Kotlin
Vendored

package protectedMember
fun main(args: Array<String>) {
//Breakpoint!
args.size
}
class MyClass {
protected fun protectedFun(): Int = 1
protected val protectedVal: Int = 1
protected class ProtectedClass {
val a = 1
}
}
// EXPRESSION: MyClass().protectedFun()
// RESULT: 1: I
// EXPRESSION: MyClass().protectedVal
// RESULT: 1: I
// EXPRESSION: MyClass.ProtectedClass().a
// RESULT: 1: I