autoClosed not inline anymore

This commit is contained in:
Andrew Golovashevich 2025-09-05 18:32:11 +03:00
parent 4b799c0ecf
commit e578517821

View File

@ -10,7 +10,7 @@ import ru.landgrafhomyak.utility.highlevel_try_finally.safeAutoClose2
@OptIn(ManualStateManipulation::class) @OptIn(ManualStateManipulation::class)
@JvmName("autoClosed\$kt") @JvmName("autoClosed\$kt")
public inline fun <S : CloseableState, R> autoClosed( public fun <S : CloseableState, R> autoClosed(
constructor: () -> S, constructor: () -> S,
scope: (S) -> R, scope: (S) -> R,
): R { ): R {