Created
June 14, 2021 02:42
-
-
Save CheolhoJeon/e2c9f91dceb9e141cddf4221e8570b7f 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 chap5.Object | |
import atomictest.eq | |
object Outer { | |
object Nested { | |
val a = "Outer.Nested.a" | |
} | |
} | |
class HasObject { | |
object Nested { | |
val a = "HasObject.Nested.a" | |
} | |
} | |
fun main() { | |
Outer.Nested.a eq "Outer.Nested.a" | |
HasObject.Nested.a eq "HasObject.Nested.a" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment