diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.fir.txt b/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.fir.txt index cb6fe0e709f..d9ecbf9d2bf 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.fir.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.fir.txt @@ -16,6 +16,11 @@ package test; * public final (* delegated *) val b: test/C * public final (* non-default *) get * + * // field: c$delegate:Lkotlin/reflect/KProperty0; + * // getter: getC()Ltest/C; + * public final (* delegated *) val c: test/C + * public final (* non-default *) get + * * // field: x$delegate:Lkotlin/Lazy; * // getter: getX()Lerror/NonExistentClass; * // synthetic method for annotations: getX$annotations()V @@ -47,6 +52,8 @@ public final class A { private final kotlin.Lazy> a$delegate = null; @org.jetbrains.annotations.NotNull() private final kotlin.Lazy> b$delegate = null; + @org.jetbrains.annotations.NotNull() + private final kotlin.reflect.KProperty0> c$delegate = null; public A() { super(); @@ -80,6 +87,11 @@ public final class A { public final test.C getB() { return null; } + + @org.jetbrains.annotations.NotNull() + public final test.C getC() { + return null; + } } //////////////////// diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.ir.txt b/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.ir.txt index 2a4a3165b58..840ba4ca26b 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.ir.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.ir.txt @@ -16,6 +16,11 @@ package test; * public final (* delegated *) val b: test/C * public final (* non-default *) get * + * // field: c$delegate:Lkotlin/reflect/KProperty0; + * // getter: getC()Ltest/C; + * public final (* delegated *) val c: test/C + * public final (* non-default *) get + * * // field: x$delegate:Lkotlin/Lazy; * // getter: getX()Lkotlin/Unit; * // synthetic method for annotations: getX$annotations()V @@ -47,6 +52,8 @@ public final class A { private final kotlin.Lazy a$delegate = null; @org.jetbrains.annotations.NotNull() private final kotlin.Lazy b$delegate = null; + @org.jetbrains.annotations.NotNull() + private final kotlin.reflect.KProperty0 c$delegate = null; public A() { super(); @@ -81,6 +88,11 @@ public final class A { public final test.C getB() { return null; } + + @org.jetbrains.annotations.NotNull() + public final test.C getC() { + return null; + } } //////////////////// diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.kt b/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.kt index 09ed876fdd8..49236d50fa6 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.kt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.kt @@ -11,4 +11,5 @@ class A { val y by object: C("y") {} val a by lazy { C("a") } val b by lazy { object: C("b") {} } + val c by ::a } diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.txt b/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.txt index cc8a6e7a87a..8039006ba8f 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/delegatedProperties.txt @@ -16,6 +16,11 @@ package test; * public final (* delegated *) val b: test/C * public final (* non-default *) get * + * // field: c$delegate:Lkotlin/reflect/KProperty0; + * // getter: getC()Ltest/C; + * public final (* delegated *) val c: test/C + * public final (* non-default *) get + * * // field: x$delegate:Lkotlin/Lazy; * // getter: getX()Lkotlin/Unit; * // synthetic method for annotations: getX$annotations()V @@ -47,6 +52,8 @@ public final class A { private final kotlin.Lazy a$delegate = null; @org.jetbrains.annotations.NotNull() private final kotlin.Lazy b$delegate = null; + @org.jetbrains.annotations.NotNull() + private final kotlin.reflect.KProperty0 c$delegate = null; public A() { super(); @@ -81,6 +88,11 @@ public final class A { public final test.C getB() { return null; } + + @org.jetbrains.annotations.NotNull() + public final test.C getC() { + return null; + } } ////////////////////