mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
24 lines
366 B
Kotlin
Vendored
24 lines
366 B
Kotlin
Vendored
// !LANGUAGE: +NestedClassesInAnnotations
|
|
|
|
annotation class Foo {
|
|
class Nested
|
|
|
|
inner class Inner
|
|
|
|
enum class E { A, B }
|
|
object O
|
|
interface I
|
|
annotation class Anno(val e: E)
|
|
|
|
companion object {
|
|
val x = 1
|
|
const val y = ""
|
|
}
|
|
|
|
|
|
constructor(s: Int) {}
|
|
init {}
|
|
fun function() {}
|
|
val property get() = Unit
|
|
}
|