-
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.
JVM IR: Box inline classes in covariant overrides (KT-30419)
- Loading branch information
Showing
18 changed files
with
21 additions
and
28 deletions.
There are no files selected for viewing
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
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
1 change: 0 additions & 1 deletion
1
compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxAny.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
inline class X(val x: Any) | ||
|
||
|
1 change: 0 additions & 1 deletion
1
compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxFunLiteralAny.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
inline class X(val x: Any) | ||
|
||
|
1 change: 0 additions & 1 deletion
1
compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAny.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
inline class X(val x: Any?) | ||
|
||
|
1 change: 0 additions & 1 deletion
1
compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/boxNullableAnyNull.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
inline class X(val x: Any?) | ||
|
||
|
1 change: 0 additions & 1 deletion
1
compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/kt27586_1.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
1 change: 0 additions & 1 deletion
1
compiler/testData/codegen/box/inlineClasses/boxReturnValueInLambda/kt27586_2.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
// WITH_RUNTIME | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
fun f1() = lazy { | ||
runCatching { | ||
|
1 change: 0 additions & 1 deletion
1
...a/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToAny.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
inline class X(val x: Any) | ||
|
||
|
1 change: 0 additions & 1 deletion
1
...n/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideChainErasedToNullableAny.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
inline class X(val x: Any?) | ||
|
||
|
1 change: 0 additions & 1 deletion
1
...stData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToAny.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
inline class X(val x: Any) | ||
|
||
|
1 change: 0 additions & 1 deletion
1
.../codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToInterface.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
interface IFoo { | ||
fun foo(): String | ||
|
1 change: 0 additions & 1 deletion
1
.../codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.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
1 change: 0 additions & 1 deletion
1
compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/genericOverride.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
inline class X(val x: Any) | ||
|
||
|
1 change: 0 additions & 1 deletion
1
compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
inline class ResultOrClosed(val x: Any?) | ||
|
||
|
1 change: 0 additions & 1 deletion
1
compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1a.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
interface IQ { | ||
fun ok(): String | ||
|
1 change: 0 additions & 1 deletion
1
compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/relatedReturnTypes1b.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
// IGNORE_BACKEND: JVM_IR | ||
|
||
interface IQ { | ||
fun ok(): String | ||
|
3 changes: 0 additions & 3 deletions
3
compiler/testData/codegen/box/inlineClasses/callableReferences/kt37986.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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
// IGNORE_BACKEND: JVM_IR | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
|
||
inline class R(val x: Any) | ||
|
||
fun useR(r: R) { | ||
|