remove support for 'trait' keyword
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait Id<T> {
|
||||
interface Id<T> {
|
||||
val id: T
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait A {
|
||||
interface A {
|
||||
fun visit(a:String, b:String="") : String = b + a
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait Base
|
||||
interface Base
|
||||
class Derived: Base
|
||||
class Another: Base
|
||||
fun Base.inc(): Derived { return Derived() }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait Base
|
||||
interface Base
|
||||
class Derived: Base
|
||||
class Another: Base
|
||||
fun Base.inc(): Derived { return Derived() }
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// KT-3407 Implementing (in Java) an abstract Kotlin class that implements a trait does not respect trait method definition
|
||||
|
||||
trait T {
|
||||
interface T {
|
||||
fun foo() = "OK"
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait KTrait : Simple {
|
||||
interface KTrait : Simple {
|
||||
fun bar(): String {
|
||||
return test("O") + Simple.testStatic("O")
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait KTrait: Simple {
|
||||
interface KTrait: Simple {
|
||||
override fun test(s: String): String {
|
||||
return s + "K"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait KTrait {
|
||||
interface KTrait {
|
||||
fun test(): String {
|
||||
return "base";
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait KTrait : Test {
|
||||
interface KTrait : Test {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user