Skip to content

Aggressive simplification bug  #172

Open
@DaniilStepanov

Description

@DaniilStepanov

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingir

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions