mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-14 08:31:35 +00:00
Because .kjsm files now contain all declarations from the package (contrary to the JVM decompiler which produces one file for one class/package facade), some common decompiled text tests started to behave differently on JVM and JS. Update two of them (Modifiers, ClassWithClassObject) to make results the same, copy another (TypeAliases) to JVM-/JS-specific tests with different outputs
13 lines
292 B
Kotlin
Vendored
13 lines
292 B
Kotlin
Vendored
package test
|
|
|
|
data class Modifiers(val x: Int) {
|
|
tailrec fun sum(x: Long, sum: Long): Long {
|
|
if (x == 0.toLong()) return sum
|
|
return sum(x - 1, sum + x)
|
|
}
|
|
|
|
inline fun inlined(crossinline arg1: ()->Unit, noinline arg2: ()->Unit): Unit {}
|
|
|
|
annotation class Ann
|
|
}
|