Add bytecode listing test on private default setter

Also fix test data of the kotlinp test and remove the newly added test
case in the obsolete PropertyGenTest

 #KT-20344 Fixed
This commit is contained in:
Alexander Udalov
2018-10-17 15:13:26 +02:00
parent 05f6ed40f1
commit 5fb1bbe3f3
5 changed files with 33 additions and 13 deletions
@@ -0,0 +1,16 @@
open class Test {
var publicProperty: String = ""
private set
protected var protectedProperty: String = ""
private set
internal var internalProperty: String = ""
private set
fun update(i: Int) {
publicProperty = i.toString()
protectedProperty = i.toString()
internalProperty = i.toString()
}
}
@@ -0,0 +1,11 @@
@kotlin.Metadata
public class Test {
private @org.jetbrains.annotations.NotNull field internalProperty: java.lang.String
private @org.jetbrains.annotations.NotNull field protectedProperty: java.lang.String
private @org.jetbrains.annotations.NotNull field publicProperty: java.lang.String
public method <init>(): void
public final @org.jetbrains.annotations.NotNull method getInternalProperty$test_module(): java.lang.String
protected final @org.jetbrains.annotations.NotNull method getProtectedProperty(): java.lang.String
public final @org.jetbrains.annotations.NotNull method getPublicProperty(): java.lang.String
public final method update(p0: int): void
}