Fix tests: "infix modifier required" and "operator modifier required" errors
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
fun box(): String {
|
||||
fun Int?.inc() = (this ?: 0) + 1
|
||||
operator fun Int?.inc() = (this ?: 0) + 1
|
||||
var counter: Int? = null
|
||||
counter++
|
||||
return if (counter == 1) "OK" else "fail: $counter"
|
||||
|
||||
Reference in New Issue
Block a user