Skip to content

Commit a001ad5

Browse files
udalovSpace Team
authored andcommitted
Kapt: add regression test for obsolete issue
#KT-43593 Obsolete
1 parent c820c27 commit a001ad5

File tree

3 files changed

+131
-0
lines changed

3 files changed

+131
-0
lines changed

plugins/kapt/kapt-compiler/testData/converter/comments.fir.txt

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,71 @@ public abstract @interface Anno {
1717
////////////////////
1818

1919

20+
/**
21+
* public abstract interface Base : kotlin/Any {
22+
*
23+
* // signature: inherited()V
24+
* public open fun inherited(): kotlin/Unit
25+
*
26+
* // module name: main
27+
*
28+
* // has method bodies in interface
29+
*
30+
* // is compiled in compatibility mode
31+
* }
32+
*/
33+
@kotlin.Metadata()
34+
public abstract interface Base {
35+
36+
/**
37+
* Inherited doc comment.
38+
*/
39+
public default void inherited() {
40+
}
41+
42+
/**
43+
* synthetic class
44+
*/
45+
@kotlin.Metadata()
46+
public static final class DefaultImpls {
47+
48+
/**
49+
* Inherited doc comment.
50+
*/
51+
@java.lang.Deprecated()
52+
public static void inherited(@org.jetbrains.annotations.NotNull()
53+
Base $this) {
54+
}
55+
}
56+
}
57+
58+
////////////////////
59+
60+
61+
/**
62+
* public final class Derived : Base {
63+
*
64+
* // signature: <init>()V
65+
* public constructor()
66+
*
67+
* // module name: main
68+
* }
69+
*/
70+
@kotlin.Metadata()
71+
public final class Derived implements Base {
72+
73+
public Derived() {
74+
super();
75+
}
76+
77+
@java.lang.Override()
78+
public void inherited() {
79+
}
80+
}
81+
82+
////////////////////
83+
84+
2085
/**
2186
* public final enum class EnumError : kotlin/Enum<EnumError> {
2287
*

plugins/kapt/kapt-compiler/testData/converter/comments.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,10 @@ enum class EnumError {
6565
* `/* Failure */`
6666
*/
6767
interface TestComponent
68+
69+
interface Base {
70+
/** Inherited doc comment. */
71+
fun inherited() {}
72+
}
73+
74+
class Derived : Base

plugins/kapt/kapt-compiler/testData/converter/comments.txt

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,65 @@ public abstract @interface Anno {
1717
////////////////////
1818

1919

20+
/**
21+
* public abstract interface Base : kotlin/Any {
22+
*
23+
* // signature: inherited()V
24+
* public open fun inherited(): kotlin/Unit
25+
*
26+
* // module name: main
27+
* }
28+
*/
29+
@kotlin.Metadata()
30+
public abstract interface Base {
31+
32+
/**
33+
* Inherited doc comment.
34+
*/
35+
public abstract void inherited();
36+
37+
/**
38+
* synthetic class
39+
*/
40+
@kotlin.Metadata()
41+
public static final class DefaultImpls {
42+
43+
/**
44+
* Inherited doc comment.
45+
*/
46+
public static void inherited(@org.jetbrains.annotations.NotNull()
47+
Base $this) {
48+
}
49+
}
50+
}
51+
52+
////////////////////
53+
54+
55+
/**
56+
* public final class Derived : Base {
57+
*
58+
* // signature: <init>()V
59+
* public constructor()
60+
*
61+
* // module name: main
62+
* }
63+
*/
64+
@kotlin.Metadata()
65+
public final class Derived implements Base {
66+
67+
public Derived() {
68+
super();
69+
}
70+
71+
@java.lang.Override()
72+
public void inherited() {
73+
}
74+
}
75+
76+
////////////////////
77+
78+
2079
/**
2180
* public final enum class EnumError : kotlin/Enum<EnumError> {
2281
*

0 commit comments

Comments
 (0)