Fix tests: "infix modifier required" and "operator modifier required" errors
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//KT-3631 String.invoke doesn't work with literals
|
||||
|
||||
fun String.invoke(i: Int) = "$this$i"
|
||||
operator fun String.invoke(i: Int) = "$this$i"
|
||||
|
||||
fun box() = if ("a"(12) == "a12") "OK" else "fail"
|
||||
Reference in New Issue
Block a user