Created
November 28, 2014 13:22
-
-
Save michalkowol/4965cc09b3b50c3c30a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.michal | |
class A { | |
private def defaultPrivate = ??? | |
private [this] def superPrivate(other: A) { | |
//other.superPrivate(this) // error | |
other.defaultPrivate | |
superPrivate(other) | |
} | |
private [michal] def publicInPackage = ??? | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.michal | |
class B { | |
def test(a: A) = { | |
a.publicInPackage | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com | |
import com.michal.A | |
class C { | |
def test(a: A) { | |
// a.publicInPackage | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment