FIR: make componentX functions operator
This commit is contained in:
@@ -9,7 +9,7 @@ data class Test1<T : Any?> {
|
||||
field = x
|
||||
get
|
||||
|
||||
fun component1(): T {
|
||||
operator fun component1(): T {
|
||||
return <this>.#x
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ data class Test2<T : Number> {
|
||||
field = x
|
||||
get
|
||||
|
||||
fun component1(): T {
|
||||
operator fun component1(): T {
|
||||
return <this>.#x
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ data class Test3<T : Any?> {
|
||||
field = x
|
||||
get
|
||||
|
||||
fun component1(): List<T> {
|
||||
operator fun component1(): List<T> {
|
||||
return <this>.#x
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ data class Test4 {
|
||||
field = x
|
||||
get
|
||||
|
||||
fun component1(): List<String> {
|
||||
operator fun component1(): List<String> {
|
||||
return <this>.#x
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user