jacodb icon indicating copy to clipboard operation
jacodb copied to clipboard

Aggressive simplification bug

Open DaniilStepanov opened this issue 2 years ago • 0 comments

Test:

fun zap(s: String) = s

inline fun tryZap(s1: String, s2: String, fn: (String, String) -> String) =
        fn(
                try { zap(s1) } catch (e: Exception) { "" },
                try { zap(s2) } catch (e: Exception) { "" }
        )

fun box(): String = tryZap("O", "K") { a, b -> a + b }

Possible fix: Here

DaniilStepanov avatar Sep 06 '23 12:09 DaniilStepanov