Generate synthetic annotation method in interface if -Xjvm-default is on
This commit is contained in:
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// !JVM_DEFAULT_MODE: all-compatibility
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY)
|
||||
annotation class Foo
|
||||
|
||||
interface Deprecated {
|
||||
|
||||
@Foo
|
||||
val prop: String
|
||||
}
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
@kotlin.Metadata
|
||||
public final class Deprecated$DefaultImpls {
|
||||
// source: 'interfaceProperty.kt'
|
||||
public synthetic deprecated static @Foo method getProp$annotations(): void
|
||||
public final inner class Deprecated$DefaultImpls
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface Deprecated {
|
||||
// source: 'interfaceProperty.kt'
|
||||
public abstract @org.jetbrains.annotations.NotNull method getProp(): java.lang.String
|
||||
public final inner class Deprecated$DefaultImpls
|
||||
}
|
||||
|
||||
@kotlin.annotation.Target
|
||||
@java.lang.annotation.Retention
|
||||
@java.lang.annotation.Target
|
||||
@kotlin.Metadata
|
||||
public annotation class Foo {
|
||||
// source: 'interfaceProperty.kt'
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
@Target(AnnotationTarget.PROPERTY)
|
||||
annotation class Foo
|
||||
|
||||
interface Deprecated {
|
||||
|
||||
@Foo
|
||||
val prop: String
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
@kotlin.Metadata
|
||||
public final class Deprecated$DefaultImpls {
|
||||
// source: 'interfaceProperty.kt'
|
||||
public synthetic deprecated static @Foo method getProp$annotations(): void
|
||||
public final inner class Deprecated$DefaultImpls
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface Deprecated {
|
||||
// source: 'interfaceProperty.kt'
|
||||
public abstract @org.jetbrains.annotations.NotNull method getProp(): java.lang.String
|
||||
public final inner class Deprecated$DefaultImpls
|
||||
}
|
||||
|
||||
@kotlin.annotation.Target
|
||||
@java.lang.annotation.Retention
|
||||
@java.lang.annotation.Target
|
||||
@kotlin.Metadata
|
||||
public annotation class Foo {
|
||||
// source: 'interfaceProperty.kt'
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// !JVM_DEFAULT_MODE: all
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
@Target(AnnotationTarget.PROPERTY)
|
||||
annotation class Foo
|
||||
|
||||
interface Deprecated {
|
||||
|
||||
@Foo
|
||||
val prop: String
|
||||
}
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
@kotlin.Metadata
|
||||
public interface Deprecated {
|
||||
// source: 'interfaceProperty.kt'
|
||||
public synthetic deprecated static @Foo method getProp$annotations(): void
|
||||
public abstract @org.jetbrains.annotations.NotNull method getProp(): java.lang.String
|
||||
}
|
||||
|
||||
@kotlin.annotation.Target
|
||||
@java.lang.annotation.Retention
|
||||
@java.lang.annotation.Target
|
||||
@kotlin.Metadata
|
||||
public annotation class Foo {
|
||||
// source: 'interfaceProperty.kt'
|
||||
}
|
||||
Reference in New Issue
Block a user