mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
Test cases are chosen so that addition/removal of explicit type will not interfere with the original purpose of the test
36 lines
648 B
Kotlin
36 lines
648 B
Kotlin
package test
|
|
|
|
class ClassVal() {
|
|
var property1: Int = 1
|
|
set
|
|
|
|
var property2: Object = Object()
|
|
protected set
|
|
|
|
var property3: Object = Object()
|
|
private set
|
|
|
|
protected var property4: String = ""
|
|
set
|
|
|
|
protected var property5: String = ""
|
|
private set
|
|
|
|
protected var property6: String = ""
|
|
internal set
|
|
|
|
protected var property7: java.util.Date = java.util.Date()
|
|
public set
|
|
|
|
public var property8: Int = 1
|
|
set
|
|
|
|
public var property9: Int = 1
|
|
private set
|
|
|
|
public var property10: Int = 1
|
|
protected set
|
|
|
|
public var property11: Int = 1
|
|
internal set
|
|
} |