Created
December 1, 2019 17:28
-
-
Save pomadchin/8fd5f5b5bfb053370c699ec5577c8c1b 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
class Foo { | |
private def isFoo = true | |
def boo(other: Foo) { | |
if (other.isFoo) { | |
// ... | |
} | |
} | |
} | |
class Foo { | |
private[this] def isFoo = true | |
def boo(other: Foo) { | |
if (other.isFoo) { // this line won't compile | |
// ... | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment