1eac4d67de
Sometimes it's allowed to parse "annotation" unescaped even if other annotations must be escaped. A set of annotations and their options tests. A swarm of existing tests fixed (mostly kotlin.annotation.annotation() added to txt-files). STUB_VERSION increased. Some quick fixes slightly changed.
15 lines
226 B
Kotlin
Vendored
15 lines
226 B
Kotlin
Vendored
class Annotation(val x: Int) {
|
|
fun baz() {}
|
|
fun bar() = x
|
|
}
|
|
|
|
fun foo(annotation: Annotation): Int {
|
|
if (annotation.bar() == 0) {
|
|
annotation.baz()
|
|
return 0
|
|
}
|
|
else {
|
|
return -1
|
|
}
|
|
}
|