Fix ConstantValue-related testData for loadJava tests

This commit is contained in:
Dmitry Petrov
2018-07-23 17:03:28 +03:00
parent cc1d9e88d5
commit 8f103dd8e5
79 changed files with 255 additions and 179 deletions
@@ -1,5 +1,5 @@
//ALLOW_AST_ACCESS
package test
internal val x = 0
internal fun f() = 0
internal val x = { 0 }()
internal fun f() = { 0 }()
@@ -1,5 +1,5 @@
package test
internal val x: kotlin.Int = 0
internal val x: kotlin.Int
internal fun <get-x>(): kotlin.Int
internal fun f(): kotlin.Int
@@ -3,12 +3,12 @@
package test
public class PrivateClassMembers {
private val v = 0
private val v = { 0 }()
private var r = 0
private var r = { 0 }()
private set
private fun f() = 0
private fun f() = { 0 }()
internal val internal = 0
internal val internal = { 0 }()
}
@@ -2,12 +2,12 @@ package test
public final class PrivateClassMembers {
/*primary*/ public constructor PrivateClassMembers()
internal final val internal: kotlin.Int = 0
internal final val internal: kotlin.Int
internal final fun <get-internal>(): kotlin.Int
private final var r: kotlin.Int
private final fun <get-r>(): kotlin.Int
private final fun <set-r>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
private final val v: kotlin.Int = 0
private final val v: kotlin.Int
private final fun <get-v>(): kotlin.Int
private final fun f(): kotlin.Int
}
@@ -1,4 +1,4 @@
//ALLOW_AST_ACCESS
package test
private val topLevelVal = 0
private val topLevelVal = { 0 }()
@@ -1,4 +1,4 @@
package test
private val topLevelVal: kotlin.Int = 0
private val topLevelVal: kotlin.Int
private fun <get-topLevelVal>(): kotlin.Int
@@ -3,9 +3,9 @@
package test
open class Base {
protected open val prot: Int = 1
internal open val int = 1
public open val pub: Int = 1
protected open val prot: Int = { 1 }()
internal open val int = { 1 }()
public open val pub: Int = { 1 }()
}
class Child(
@@ -2,11 +2,11 @@ package test
public open class Base {
/*primary*/ public constructor Base()
internal open val int: kotlin.Int = 1
internal open val int: kotlin.Int
internal open fun <get-int>(): kotlin.Int
protected open val prot: kotlin.Int = 1
protected open val prot: kotlin.Int
protected open fun <get-prot>(): kotlin.Int
public open val pub: kotlin.Int = 1
public open val pub: kotlin.Int
public open fun <get-pub>(): kotlin.Int
}
@@ -3,9 +3,9 @@
package test
open class Base {
protected open val prot: Int = 1
internal open val int: Int = 1
public open val pub: Int = 1
protected open val prot: Int = { 1 }()
internal open val int: Int = { 1 }()
public open val pub: Int = { 1 }()
}
class Child(
@@ -2,11 +2,11 @@ package test
public open class Base {
/*primary*/ public constructor Base()
internal open val int: kotlin.Int = 1
internal open val int: kotlin.Int
internal open fun <get-int>(): kotlin.Int
protected open val prot: kotlin.Int = 1
protected open val prot: kotlin.Int
protected open fun <get-prot>(): kotlin.Int
public open val pub: kotlin.Int = 1
public open val pub: kotlin.Int
public open fun <get-pub>(): kotlin.Int
}