compiler testdata: s/trait/interface
This commit is contained in:
@@ -3,7 +3,7 @@ package test
|
||||
|
||||
class ConstructorTypeParamClassObjectTypeConflict<test> {
|
||||
companion object {
|
||||
trait test
|
||||
interface test
|
||||
}
|
||||
|
||||
val some: test? = throw Exception()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package test
|
||||
|
||||
trait TraitWithP<P>
|
||||
interface TraitWithP<P>
|
||||
|
||||
class ClassParamReferencesSelf<A : TraitWithP<A>>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//ALLOW_AST_ACCESS
|
||||
package test
|
||||
|
||||
public trait A<T> {
|
||||
public interface A<T> {
|
||||
fun bar(): T
|
||||
fun foo(): T = bar()
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
open fun f(a: String) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package test
|
||||
|
||||
trait Aaa<P>
|
||||
interface Aaa<P>
|
||||
|
||||
class Bbb() : Aaa<java.util.Random>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
//ALLOW_AST_ACCESS
|
||||
package test
|
||||
|
||||
trait Rec<R, out T: Rec<R, T>> {
|
||||
interface Rec<R, out T: Rec<R, T>> {
|
||||
fun t(): T
|
||||
}
|
||||
|
||||
trait Super {
|
||||
interface Super {
|
||||
fun foo(p: Rec<*, *>) = p.t()
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
package test
|
||||
|
||||
public trait SingleAbstractMethod {
|
||||
public interface SingleAbstractMethod {
|
||||
fun foo()
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
package test
|
||||
|
||||
trait Trtrtr
|
||||
interface Trtrtr
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
public trait JavaBeanAbstractGetter {
|
||||
public interface JavaBeanAbstractGetter {
|
||||
//final val red: Int
|
||||
public abstract fun getRed(): Int
|
||||
//final val blue: Int
|
||||
|
||||
Reference in New Issue
Block a user