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
+1 -1
View File
@@ -8,4 +8,4 @@ fun foo() {
//extract from library
fun <K, V> hashMap(<warning>p</warning>: Pair<K, V>): MutableMap<K, V> {<error>}</error>
fun <K, V> K.to(<warning>v</warning>: V): Pair<K, V> {<error>}</error>
data class Pair<K, V> {}
class Pair<K, V> {}