compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
annotation class a
|
||||
trait A
|
||||
trait B
|
||||
interface A
|
||||
interface B
|
||||
|
||||
<!FUNCTION_DECLARATION_WITH_NO_NAME, CONFLICTING_OVERLOADS!>fun ()<!> {}
|
||||
<!FUNCTION_DECLARATION_WITH_NO_NAME, CONFLICTING_OVERLOADS!>fun A.()<!> {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait MyTrait {
|
||||
interface MyTrait {
|
||||
fun f1() {}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,5 +15,5 @@
|
||||
<!ILLEGAL_MODIFIER!>final<!> object B4 {}
|
||||
|
||||
<!ILLEGAL_MODIFIER!>override<!> enum class C {}
|
||||
<!ILLEGAL_MODIFIER!>override<!> trait D {}
|
||||
<!ILLEGAL_MODIFIER!>override<!> interface D {}
|
||||
<!ILLEGAL_MODIFIER!>override<!> annotation class E
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
package kt1141
|
||||
|
||||
public trait SomeTrait {
|
||||
public interface SomeTrait {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//KT-2397 Prohibit final methods in traits with no implementation
|
||||
package a
|
||||
|
||||
trait T {
|
||||
interface T {
|
||||
<!FINAL_FUNCTION_WITH_NO_BODY!>final<!> fun foo()
|
||||
<!FINAL_PROPERTY_IN_TRAIT!>final<!> val b : Int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user