KT-6178 False "Overriden methods are not annotated" when using delegation
#KT-6178 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
public final class WithPlatformTypes implements kotlin.jvm.internal.KObject, java.lang.Iterable<java.lang.String> {
|
||||
public WithPlatformTypes(@org.jetbrains.annotations.NotNull java.lang.Iterable<java.lang.String> i) { /* compiled code */ }
|
||||
|
||||
@org.jetbrains.annotations.NotNull
|
||||
public java.util.Iterator<java.lang.String> iterator() { /* compiled code */ }
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// WithPlatformTypes
|
||||
|
||||
class WithPlatformTypes(i: java.lang.Iterable<String>) : java.lang.Iterable<String> by i
|
||||
@@ -0,0 +1,6 @@
|
||||
public final class WithPlatformTypes implements kotlin.jvm.internal.KObject, p.J {
|
||||
public WithPlatformTypes(@org.jetbrains.annotations.NotNull p.J j) { /* compiled code */ }
|
||||
|
||||
@org.jetbrains.annotations.NotNull
|
||||
public java.lang.String foo(@org.jetbrains.annotations.NotNull java.lang.String b) { /* compiled code */ }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// WithPlatformTypes
|
||||
|
||||
// FILE: p/J.java
|
||||
package p;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface J {
|
||||
@NotNull
|
||||
String foo(@NotNull String b);
|
||||
}
|
||||
|
||||
// FILE: k.kt
|
||||
|
||||
import p.*
|
||||
|
||||
class WithPlatformTypes(j: J) : J by j
|
||||
Reference in New Issue
Block a user