Allow destructuring in suspend lambda with suspend componentX
#KT-16113 Fixed
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// SKIP_TXT
|
||||
class A {
|
||||
suspend operator fun component1(): String = "K"
|
||||
}
|
||||
|
||||
fun foo(<!UNUSED_PARAMETER!>c<!>: suspend (A) -> Unit) {}
|
||||
|
||||
fun bar() {
|
||||
foo {
|
||||
(x) ->
|
||||
x.length
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user