Files
Alexander Udalov bcd221f714 Kapt: use descriptorBasedTypeMapping for type mapping
Since all anonymous types are approximated to a supertype in kapt, type
mapping doesn't require backend information (mapping of anonymous types
to class names) and can be performed statically, independently from
particular JVM backend internals, via descriptorBasedTypeMapping.

 #KT-49682
2022-02-08 20:15:13 +01:00

24 lines
502 B
Kotlin
Vendored

// FILE: androidx/annotation/RecentlyNullable.java
package androidx.annotation;
import java.lang.annotation.*;
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD})
@interface RecentlyNullable {}
// FILE: androidx/annotation/Box.java
package androidx.annotation;
public interface Box {
@RecentlyNullable
public String foo();
}
// FILE: test.kt
package app
import androidx.annotation.Box
class KBox(val delegate: Box) : Box by delegate