[FIR] Unwrap named arguments during contracts verification

^KT-64501 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-12-21 12:58:31 +02:00
committed by Space Team
parent 6031f80e01
commit de9826683e
2 changed files with 6 additions and 3 deletions
@@ -9,7 +9,7 @@ inline fun myRun(f: () -> Unit) {
@OptIn(ExperimentalContracts::class)
inline fun test_1(g: () -> Unit) {
<!WRONG_INVOCATION_KIND!>contract { callsInPlace(g, InvocationKind.EXACTLY_ONCE) }<!>
contract { callsInPlace(g, InvocationKind.EXACTLY_ONCE) }
myRun(f = g)
}