Add intention to specify all types explicitly in destructuring assignment

#KT-16260 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-08-17 09:45:36 +09:00
committed by Dmitry Jemerov
parent 3529d61a7d
commit 6b2c22aff1
21 changed files with 197 additions and 4 deletions
@@ -0,0 +1,3 @@
fun main(args: Array<String>) {
val (i<spot>: Int</spot>, s<spot>: String</spot>) = Pair(1, "s")
}
@@ -0,0 +1,3 @@
fun main(args: Array<String>) {
val <spot>(i, s)</spot> = Pair(1, "s")
}
@@ -0,0 +1,5 @@
<html>
<body>
Specifies all types explicitly in a destructuring declaration.
</body>
</html>