Introduce Parameter: Implement "Introduce lambda parameter"
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// WITH_DEFAULT_VALUE: false
|
||||
fun foo(a: Int, __dummyTestFun__: (Int) -> Unit) {
|
||||
__dummyTestFun__(a)
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(1) { a -> throw Exception("Error: $a") }
|
||||
}
|
||||
Reference in New Issue
Block a user