"Use destructuring declaration" should not be available for top-level and class properties (#1205)

Fixes #KT-19167
This commit is contained in:
Kirill Rakhman
2017-07-24 14:33:46 +02:00
committed by Dmitry Jemerov
parent f558b4238c
commit 4c7ddbe397
4 changed files with 30 additions and 2 deletions
@@ -0,0 +1,9 @@
// IS_APPLICABLE: false
data class XY(val x: Int, val y: Int)
fun create() = XY(1, 2)
class Foo {
val xy = <caret>create()
}
@@ -0,0 +1,7 @@
// IS_APPLICABLE: false
data class XY(val x: Int, val y: Int)
fun create() = XY(1, 2)
val xy = <caret>create()