f130755972
Instead of .kotlin_class and .kotlin_package files, .kotlin_builtins files are now supported: they are decompiled to a long file consisting of all non-real classes (those which do not also have .class files) and members in the corresponding package. Unlike the old files, .kotlin_builtins files have a binary version in the beginning, which allows us to skip decompilation and stub building in case the file has an unsupported version. This could previously lead to exceptions, see KT-11077, EA-79339. The change in DecompiledTextFactory is needed because without "defined in ..." the keys for members in the long decompiled file are not unique, as there are multiple members with exactly the same signatures in different classes (e.g. arithmetic operations in primitive classes). Remove testData files with the decompiled text and stubs of built-in symbols because now that the whole package is decompiled to a single file, it would be painful to update these files each time something in built-in sources changes #KT-11077 Fixed
4 lines
139 B
Kotlin
Vendored
4 lines
139 B
Kotlin
Vendored
val ia = <caret>IntArray(4)
|
|
// BINARY: kotlin/kotlin.kotlin_builtins
|
|
// SRC: kotlin/Arrays.kt
|
|
// TARGET: (in kotlin.IntArray).IntArray(Int) |