Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggressive simplification bug #172

Open
DaniilStepanov opened this issue Sep 6, 2023 · 0 comments
Open

Aggressive simplification bug #172

DaniilStepanov opened this issue Sep 6, 2023 · 0 comments
Assignees
Labels
bug Something isn't working ir

Comments

@DaniilStepanov
Copy link
Collaborator

DaniilStepanov commented Sep 6, 2023

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

@lehvolk lehvolk self-assigned this Sep 14, 2023
@lehvolk lehvolk added the bug Something isn't working label Sep 15, 2023
@lehvolk lehvolk added the ir label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ir
Projects
None yet
Development

No branches or pull requests

2 participants