compiler testdata: s/trait/interface
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait T {
|
||||
interface T {
|
||||
<!OVERLOADS_ABSTRACT!>@kotlin.jvm.overloads fun foo(s: String = "OK")<!>
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ class A {
|
||||
}
|
||||
}
|
||||
|
||||
trait B {
|
||||
interface B {
|
||||
companion object {
|
||||
<!PLATFORM_STATIC_NOT_IN_OBJECT!>platformStatic fun a1()<!> {
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
||||
trait A
|
||||
interface A
|
||||
abstract class B
|
||||
annotation class C
|
||||
enum class D
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
import kotlin.reflect.KMemberProperty
|
||||
|
||||
trait Base {
|
||||
interface Base {
|
||||
val x: Any
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import kotlin.jvm.*
|
||||
|
||||
trait Base {
|
||||
interface Base {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import kotlin.jvm.*
|
||||
|
||||
trait Tr {
|
||||
interface Tr {
|
||||
<!NATIVE_DECLARATION_IN_TRAIT!>native fun foo()<!>
|
||||
<!NATIVE_DECLARATION_IN_TRAIT, NATIVE_DECLARATION_CANNOT_HAVE_BODY!>native fun bar()<!> {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user