Fix tests: "infix modifier required" and "operator modifier required" errors
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
// "Rename to 'setValue'" "true"
|
||||
// ERROR: 'get' method convention on type 'CustomDelegate' is deprecated. Rename to 'getValue'
|
||||
|
||||
class CustomDelegate {
|
||||
operator fun get(thisRef: Any?, prop: PropertyMetadata): String = ""
|
||||
operator fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// "Rename to 'setValue'" "true"
|
||||
// ERROR: 'get' method convention on type 'CustomDelegate' is deprecated. Rename to 'getValue'
|
||||
|
||||
class CustomDelegate {
|
||||
operator fun get(thisRef: Any?, prop: PropertyMetadata): String = ""
|
||||
operator fun setValue(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// "Add 'operator' modifier" "true"
|
||||
// ERROR: operator modifier is required on 'component2' in 'A'
|
||||
|
||||
class A {
|
||||
fun component1(): Int = 0
|
||||
fun component2(): Int = 1
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// "Add 'operator' modifier" "true"
|
||||
// ERROR: operator modifier is required on 'component2' in 'A'
|
||||
|
||||
class A {
|
||||
operator fun component1(): Int = 0
|
||||
fun component2(): Int = 1
|
||||
|
||||
Reference in New Issue
Block a user