Skip to content

Instantly share code, notes, and snippets.

@michalkowol
Created November 28, 2014 13:22
Show Gist options
  • Save michalkowol/4965cc09b3b50c3c30a4 to your computer and use it in GitHub Desktop.
Save michalkowol/4965cc09b3b50c3c30a4 to your computer and use it in GitHub Desktop.
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 = ???
}
package com.michal
class B {
def test(a: A) = {
a.publicInPackage
}
}
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