mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
24 lines
553 B
Kotlin
Vendored
24 lines
553 B
Kotlin
Vendored
// !LANGUAGE: +NestedClassesInAnnotations
|
|
|
|
annotation class Foo {
|
|
class Nested
|
|
|
|
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>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 = ""
|
|
}
|
|
|
|
|
|
<!ANNOTATION_CLASS_MEMBER!>constructor(<!UNUSED_PARAMETER!>s<!>: Int) {}<!>
|
|
<!ANNOTATION_CLASS_MEMBER!>init {}<!>
|
|
<!ANNOTATION_CLASS_MEMBER!>fun function() {}<!>
|
|
<!ANNOTATION_CLASS_MEMBER!>val property get() = Unit<!>
|
|
}
|