compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
trait A {
|
||||
interface A {
|
||||
fun bar2(arg: Int = 239) : Int
|
||||
|
||||
fun bar(arg: Int = 240) : Int = bar2(arg/2)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait A {
|
||||
interface A {
|
||||
fun foo(x: Int, y: Int = x + 20, z: Int = y * 2) = z
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
trait Named {
|
||||
interface Named {
|
||||
abstract fun getName() : String;
|
||||
}
|
||||
|
||||
trait MemberDescriptor : Named {}
|
||||
interface MemberDescriptor : Named {}
|
||||
|
||||
trait ClassifierDescriptor : Named {}
|
||||
interface ClassifierDescriptor : Named {}
|
||||
|
||||
trait ClassDescriptor : MemberDescriptor, ClassifierDescriptor {}
|
||||
interface ClassDescriptor : MemberDescriptor, ClassifierDescriptor {}
|
||||
|
||||
class ClassDescriptorImpl : ClassDescriptor {
|
||||
override fun getName(): String {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
trait MyIterator<T> {
|
||||
interface MyIterator<T> {
|
||||
fun hasNext() : Boolean
|
||||
fun next() : T
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package t
|
||||
|
||||
trait I{
|
||||
interface I{
|
||||
fun f()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait A {
|
||||
interface A {
|
||||
val method : (() -> Unit)?
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait A {
|
||||
interface A {
|
||||
val method : () -> Unit?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user