compiler testdata: s/trait/interface

This commit is contained in:
Dmitry Jemerov
2015-05-12 12:38:49 +02:00
parent a5ed5d4269
commit 4bdf598bfe
803 changed files with 1456 additions and 1456 deletions
@@ -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?
}