https://kotlinlang.org logo
Title
u

uhe

01/18/2018, 9:54 AM
val foo = mapOf<String, String>()[""] ?: longAssMethodNameWithLongAssParameters(lookAtMeImSoLong = "so very long!") inlineInfixFun { return }
becomes
val foo = mapOf<String, String>()[""]
            ?: longAssMethodNameWithLongAssParameters(lookAtMeImSoLong = "so very long!")
            inlineInfixFun { return }
which doesn't compile any longer
:youtrack: 2
k

kirillrakhman

01/18/2018, 12:59 PM
what are the precendense rules? does elvis bind stronger than infix function?
u

uhe

01/18/2018, 3:37 PM
since the right side of
?:
is only executed when the left side is null, it shouldn't matter, right?