mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
18 lines
289 B
Kotlin
Vendored
18 lines
289 B
Kotlin
Vendored
enum class Direction {
|
|
NORTH,
|
|
SOUTH(val x : Int) {
|
|
fun again() : String {
|
|
return "Hello"
|
|
}
|
|
|
|
class Hello
|
|
},
|
|
WEST {
|
|
class Some {
|
|
fun test() : Int {
|
|
return 12 + 14
|
|
}
|
|
}
|
|
}
|
|
EAST
|
|
} |