remove support for 'trait' keyword
This commit is contained in:
@@ -2,9 +2,6 @@ import pack.oldFun1
|
||||
import pack.oldFun2 // should not be removed for non-deprecated overload used
|
||||
import pack.oldFun3
|
||||
|
||||
trait Foo {
|
||||
}
|
||||
|
||||
val f = { (a: Int, b: Int) -> a + b }
|
||||
|
||||
class A private()
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import pack.bar
|
||||
import pack.oldFun2 // should not be removed for non-deprecated overload used
|
||||
|
||||
interface Foo {
|
||||
}
|
||||
|
||||
val f = { a: Int, b: Int -> a + b }
|
||||
|
||||
class A private constructor()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
trait I {
|
||||
interface I {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public trait I {
|
||||
public interface I {
|
||||
public fun foo(): String
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public trait I {
|
||||
public interface I {
|
||||
public fun foo(): String
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// IS_APPLICABLE: false
|
||||
public trait I {
|
||||
public interface I {
|
||||
public val v: String?
|
||||
}
|
||||
|
||||
public trait I1 : I {
|
||||
public interface I1 : I {
|
||||
override val v: String<caret>
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'x'" "true"
|
||||
|
||||
trait X {
|
||||
interface X {
|
||||
@Deprecated("", ReplaceWith("x"))
|
||||
fun getX(): String
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'x'" "true"
|
||||
|
||||
trait X {
|
||||
interface X {
|
||||
@Deprecated("", ReplaceWith("x"))
|
||||
fun getX(): String
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'getX()'" "true"
|
||||
|
||||
trait X {
|
||||
interface X {
|
||||
@Deprecated("", ReplaceWith("getX()"))
|
||||
val x: String
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'getX()'" "true"
|
||||
|
||||
trait X {
|
||||
interface X {
|
||||
@Deprecated("", ReplaceWith("getX()"))
|
||||
val x: String
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
// "Replace 'trait' with 'interface'" "true"
|
||||
|
||||
<caret>trait Foo {
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
// "Replace 'trait' with 'interface'" "true"
|
||||
|
||||
<caret>interface Foo {
|
||||
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Add constructor parameters from Base(T, String, Base<T, String>?)" "true"
|
||||
trait I
|
||||
interface I
|
||||
|
||||
open class Base<T1, T2>(p1: T1, p2: T2, p3: Base<T1, T2>?)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Add constructor parameters from Base(T, String, Base<T, String>?)" "true"
|
||||
trait I
|
||||
interface I
|
||||
|
||||
open class Base<T1, T2>(p1: T1, p2: T2, p3: Base<T1, T2>?)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package testing
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
open fun foo(aa: Int, b: String) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package testing
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
open fun foo(a: Int, b: String) {
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package testing
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
open fun Int.foo(aa: Int, b: String) {
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package testing
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
open fun Int.foo(a: Int, b: String) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user