Added test
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Add 'operator' modifier" "true"
|
||||
open class A {
|
||||
open fun plus(other: A): A = A()
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun <caret>plus(other: A): A {
|
||||
return super.plus(other)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Add 'operator' modifier" "true"
|
||||
open class A {
|
||||
open fun plus(other: A): A = A()
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override operator fun <caret>plus(other: A): A {
|
||||
return super.plus(other)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user