compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
trait P<U, Y>
|
||||
interface P<U, Y>
|
||||
|
||||
class A<T> {
|
||||
class B {
|
||||
|
||||
@@ -22,6 +22,6 @@ class B {
|
||||
|
||||
open class Request(private val handler: ActionContext.() -> Unit) {}
|
||||
|
||||
trait ActionContext {
|
||||
interface ActionContext {
|
||||
val session : Map<String, String>
|
||||
}
|
||||
@@ -2,12 +2,12 @@
|
||||
<!ILLEGAL_MODIFIER!>inner<!> val prop = 42
|
||||
|
||||
<!ILLEGAL_MODIFIER!>inner<!> class A
|
||||
<!ILLEGAL_MODIFIER!>inner<!> trait B
|
||||
<!ILLEGAL_MODIFIER!>inner<!> interface B
|
||||
<!ILLEGAL_MODIFIER!>inner<!> object C
|
||||
|
||||
class D {
|
||||
inner class E
|
||||
<!ILLEGAL_MODIFIER!>inner<!> trait F
|
||||
<!ILLEGAL_MODIFIER!>inner<!> interface F
|
||||
<!ILLEGAL_MODIFIER!>inner<!> object G
|
||||
<!ILLEGAL_MODIFIER!>inner<!> enum class R
|
||||
<!ILLEGAL_MODIFIER!>inner<!> annotation class S
|
||||
@@ -22,7 +22,7 @@ enum class H {
|
||||
inner class J
|
||||
}
|
||||
|
||||
trait K {
|
||||
interface K {
|
||||
<!INNER_CLASS_IN_TRAIT!>inner<!> class L
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
fun bar() = 42
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
fun bar() = 42
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait N { fun foo() = 1 }
|
||||
interface N { fun foo() = 1 }
|
||||
|
||||
class WithClassObject {
|
||||
companion object {}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// KT-2100
|
||||
|
||||
trait I {
|
||||
interface I {
|
||||
val x : String
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// KT-1188
|
||||
|
||||
trait Foo {
|
||||
interface Foo {
|
||||
val b : Bar
|
||||
val b1 : Foo.Bar
|
||||
trait Bar {}
|
||||
interface Bar {}
|
||||
}
|
||||
|
||||
trait Foo2 : Foo {
|
||||
interface Foo2 : Foo {
|
||||
val bb1 : Foo.Bar
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user