J2K: generate 'interface' keyword instead of 'trait'
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
trait I {
|
||||
interface I {
|
||||
public fun getString(): String?
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait I {
|
||||
interface I {
|
||||
public fun getString(): String?
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait I {
|
||||
interface I {
|
||||
public fun getString(): String?
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait I {
|
||||
interface I {
|
||||
public fun getString(): String
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// ERROR: Return type of 'get' is not a subtype of the return type of overridden member public abstract fun get(): kotlin.String defined in Getter
|
||||
trait Getter {
|
||||
interface Getter {
|
||||
public fun get(): String
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ open class Base {
|
||||
}
|
||||
}
|
||||
|
||||
trait I {
|
||||
interface I {
|
||||
public fun zoo(o: Any?): String?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user