Deprecations: data class should now have at least one primary constructor parameter, parameters should be val / var and not vararg.

This commit is contained in:
Mikhail Glukhikh
2015-09-22 13:25:37 +03:00
parent 3d6253c27f
commit 55c7df8b8d
29 changed files with 75 additions and 180 deletions
@@ -3,10 +3,10 @@ data class A1(val x: String) {
constructor(): this("")
}
data class A2() {
constructor(x: String): this()
data class A2(val y: String, val z: Int) {
constructor(x: String): this(x, 0)
}
data class <!PRIMARY_CONSTRUCTOR_REQUIRED_FOR_DATA_CLASS!>A3<!> {
data class <!PRIMARY_CONSTRUCTOR_REQUIRED_FOR_DATA_CLASS, DATA_CLASS_WITHOUT_PARAMETERS!>A3<!> {
constructor()
}