File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
testData/codegen/boxWithStdlib/arrays
tests/org/jetbrains/kotlin/codegen/generated Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ fun foo (x : Any ): String {
2
+ return if (x is Array <String >) x[0 ] else " fail"
3
+ }
4
+
5
+ fun box (): String {
6
+ return foo(array(" OK" ))
7
+ }
Original file line number Diff line number Diff line change @@ -215,6 +215,12 @@ public void testKt4357() throws Exception {
215
215
doTestWithStdlib (fileName );
216
216
}
217
217
218
+ @ TestMetadata ("kt7338.kt" )
219
+ public void testKt7338 () throws Exception {
220
+ String fileName = JetTestUtils .navigationMetadata ("compiler/testData/codegen/boxWithStdlib/arrays/kt7338.kt" );
221
+ doTestWithStdlib (fileName );
222
+ }
223
+
218
224
@ TestMetadata ("kt945.kt" )
219
225
public void testKt945 () throws Exception {
220
226
String fileName = JetTestUtils .navigationMetadata ("compiler/testData/codegen/boxWithStdlib/arrays/kt945.kt" );
You can’t perform that action at this time.
0 commit comments