Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JVM signature mapping for multi-dimensional arrays
#KT-11314 Fixed
- Loading branch information
Showing
6 changed files
with
45 additions
and
1 deletion.
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
14 changes: 14 additions & 0 deletions
14
compiler/testData/codegen/box/arrays/genericArrayInObjectLiteralConstructor.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,14 @@ | ||
// WITH_RUNTIME | ||
abstract class Table<T>( | ||
val content: Array<Array<T>> | ||
) | ||
|
||
fun box(): String { | ||
val x = object : Table<String>( | ||
Array(1, { | ||
x-> Array(1, {y -> "OK"}) | ||
}) | ||
) {} | ||
|
||
return x.content[0][0] | ||
} |
11 changes: 11 additions & 0 deletions
11
compiler/testData/codegen/light-analysis/arrays/genericArrayInObjectLiteralConstructor.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,11 @@ | ||
@kotlin.Metadata | ||
public final class GenericArrayInObjectLiteralConstructorKt { | ||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String | ||
} | ||
|
||
@kotlin.Metadata | ||
public abstract class Table { | ||
private final @org.jetbrains.annotations.NotNull field content: java.lang.Object[][] | ||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.Object[][]): void | ||
public final @org.jetbrains.annotations.NotNull method getContent(): java.lang.Object[][] | ||
} |
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
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