mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Fix tests: "infix modifier required" and "operator modifier required" errors
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
class C(val i: Int) {
|
||||
}
|
||||
|
||||
fun C.component1() = i + 1
|
||||
fun C.component2() = i + 2
|
||||
operator fun C.component1() = i + 1
|
||||
operator fun C.component2() = i + 2
|
||||
|
||||
fun doTest(l : Array<C>): String {
|
||||
var s = ""
|
||||
|
||||
Reference in New Issue
Block a user