Fix decompiler tests.
For now, JVM and JS backends produce different metadata for package facades (and package parts), and thus different output is expected for JVM and JS decompiler. Split decompiler tests into common (decompiledText), JVM-specific (decompiledTextJvm), and JS-specific (decompiledTextJs) Join them back together if JS backend migrates to JVM-like package model.
This commit is contained in:
committed by
Michael Bogdanov
parent
282727b9b2
commit
f9901f6075
@@ -0,0 +1,12 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package test
|
||||
|
||||
private var i: kotlin.Int /* compiled code */
|
||||
|
||||
internal val p: kotlin.Int /* compiled code */
|
||||
|
||||
internal fun f(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
internal fun kotlin.Int.plus(i: kotlin.Int /* = compiled code */): kotlin.Int { /* compiled code */ }
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
fun f() {}
|
||||
val p = 3
|
||||
private var i = 2
|
||||
|
||||
fun Int.plus(i: Int = 1) = this + i
|
||||
|
||||
class ShouldNotBeVisible1
|
||||
interface ShouldNotBeVisible2
|
||||
Reference in New Issue
Block a user