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
35 lines
456 B
Kotlin
Vendored
35 lines
456 B
Kotlin
Vendored
package test
|
|
|
|
class ClassWithClassObject {
|
|
fun f() {
|
|
}
|
|
|
|
companion object {
|
|
fun f() {
|
|
}
|
|
|
|
fun Int.f() {
|
|
}
|
|
|
|
private fun privateFun() {
|
|
}
|
|
|
|
val a: A = A()
|
|
|
|
public var b: B = B()
|
|
|
|
val Int.g: Int
|
|
get() = this + 2
|
|
|
|
fun <T, K, G> complexFun(a: T, b: K, c: G): G {
|
|
throw RuntimeException()
|
|
}
|
|
}
|
|
|
|
class B {
|
|
}
|
|
|
|
class A {
|
|
}
|
|
}
|