Skip to content

Instantly share code, notes, and snippets.

@CheolhoJeon
Created June 14, 2021 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CheolhoJeon/e2c9f91dceb9e141cddf4221e8570b7f to your computer and use it in GitHub Desktop.
Save CheolhoJeon/e2c9f91dceb9e141cddf4221e8570b7f to your computer and use it in GitHub Desktop.
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