[K2]: Missing error and miscompilation in destructuring declaration delegation
In convertDestructingDeclaration, property delegates are mistakenly treated as valid expressions for destructuring, but they should be ignored. #KT-65021 Fixed
This commit is contained in:
committed by
Space Team
parent
b0367d9399
commit
1d817e2ace
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
fun foo() {
|
||||
<!INITIALIZER_REQUIRED_FOR_DESTRUCTURING_DECLARATION!>val (a, b) by listOf(1, 2)<!>
|
||||
<!INITIALIZER_REQUIRED_FOR_DESTRUCTURING_DECLARATION!>val (c, d) by lazy { listOf(3, 4) }<!>
|
||||
}
|
||||
Reference in New Issue
Block a user