"Use destructuring declaration" should not be available for top-level and class properties (#1205)
Fixes #KT-19167
This commit is contained in:
committed by
Dmitry Jemerov
parent
f558b4238c
commit
4c7ddbe397
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user