-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kapt+JVM_IR: add stub converter test for KT-57388
- Loading branch information
Showing
5 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
plugins/kapt3/kapt3-compiler/testData/converter/unresolvedDelegateExpression.ir.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@kotlin.Metadata() | ||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE"}) | ||
public final class B implements NonExisting { | ||
@org.jetbrains.annotations.NotNull() | ||
private final java.lang.String a$delegate = null; | ||
|
||
public B() { | ||
super(); | ||
} | ||
|
||
@org.jetbrains.annotations.NotNull() | ||
public final java.lang.String getA() { | ||
return null; | ||
} | ||
|
||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE_WRONG_RECEIVER"}) | ||
@java.lang.Deprecated() | ||
public static void getA$annotations() { | ||
} | ||
} | ||
|
||
//////////////////// | ||
|
||
|
||
@kotlin.Metadata() | ||
public class C { | ||
|
||
public C() { | ||
super(); | ||
} | ||
} | ||
|
||
//////////////////// | ||
|
||
|
||
@kotlin.Metadata() | ||
public final class UnresolvedDelegateExpressionKt { | ||
|
||
@org.jetbrains.annotations.NotNull() | ||
public static final java.lang.String flaf(@org.jetbrains.annotations.NotNull() | ||
C $this$flaf) { | ||
return null; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
plugins/kapt3/kapt3-compiler/testData/converter/unresolvedDelegateExpression.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// CORRECT_ERROR_TYPES | ||
// NO_VALIDATION | ||
|
||
open class C | ||
|
||
@Suppress("UNRESOLVED_REFERENCE") | ||
class B : NonExisting { | ||
@Suppress("UNRESOLVED_REFERENCE_WRONG_RECEIVER") | ||
val a: String by flaf() | ||
} | ||
|
||
fun C.flaf() = "OK" |
44 changes: 44 additions & 0 deletions
44
plugins/kapt3/kapt3-compiler/testData/converter/unresolvedDelegateExpression.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@kotlin.Metadata() | ||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE"}) | ||
public final class B implements NonExisting { | ||
@org.jetbrains.annotations.NotNull() | ||
private final java.lang.Object a$delegate = null; | ||
|
||
public B() { | ||
super(); | ||
} | ||
|
||
@org.jetbrains.annotations.NotNull() | ||
public final java.lang.String getA() { | ||
return null; | ||
} | ||
|
||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE_WRONG_RECEIVER"}) | ||
@java.lang.Deprecated() | ||
public static void getA$annotations() { | ||
} | ||
} | ||
|
||
//////////////////// | ||
|
||
|
||
@kotlin.Metadata() | ||
public class C { | ||
|
||
public C() { | ||
super(); | ||
} | ||
} | ||
|
||
//////////////////// | ||
|
||
|
||
@kotlin.Metadata() | ||
public final class UnresolvedDelegateExpressionKt { | ||
|
||
@org.jetbrains.annotations.NotNull() | ||
public static final java.lang.String flaf(@org.jetbrains.annotations.NotNull() | ||
C $this$flaf) { | ||
return null; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
.../org/jetbrains/kotlin/kapt3/test/runners/ClassFileToSourceStubConverterTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...rg/jetbrains/kotlin/kapt3/test/runners/IrClassFileToSourceStubConverterTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.