Vladimir Kishlaly (1) [Avatar] Offline
#1
“internal open class TalkativeButton : Focusable {
    private fun yell() = println("Hey!")
    protected fun whisper() = println("Let's talk!")
}

fun TalkativeButton.giveSpeech() { ?

    yell()                         ?

    whisper()                      ?
}”



And just after the code follows description with confused access modifiers links:



“?
Error: 'public' member exposes its 'internal' receiver type TalkativeButton
?
Error: cannot access 'yell': it is 'protected' in 'TalkativeButton'
?
Error: cannot access 'whisper': it is 'private' in 'TalkativeButton”