IDE testdata: s/trait/interface

This commit is contained in:
Dmitry Jemerov
2015-05-12 20:39:44 +02:00
parent 99cad4b43f
commit 625096466e
698 changed files with 1049 additions and 1049 deletions
@@ -25,7 +25,7 @@ public object KotlinObject {
fun f() = 1
}
public trait StaticFieldInClassObjectInTrait {
public interface StaticFieldInClassObjectInTrait {
companion object {
public val XX: String = "xx"
}
@@ -37,13 +37,13 @@ object PlatformStaticFun {
}
}
trait TraitNoImpl {
interface TraitNoImpl {
fun foo()
}
public class TraitWithDelegatedNoImpl(f: TraitNoImpl): TraitNoImpl by f
trait TraitWithImpl {
interface TraitWithImpl {
fun foo() = 1
}
@@ -1,3 +1,3 @@
package inlibrary.test
trait Test
interface Test
@@ -1,6 +1,6 @@
package t
trait Trait
interface Trait
open class A {
companion object Companion : Trait {
@@ -1,6 +1,6 @@
package t
trait Trait {
interface Trait {
val some : Int get() = 1
}
@@ -1,12 +1,12 @@
trait A {
interface A {
fun foo()
}
trait B {
interface B {
fun foo()
}
trait C : A, B {
interface C : A, B {
}
@@ -1,14 +1,14 @@
var x : Int <caret>by Baz()
trait Foo {
interface Foo {
fun get(p1: Any?, p2: Any?): Int = 1
}
trait Bar {
interface Bar {
fun get(p1: Any?, p2: Any?): Int
}
trait Zoo {
interface Zoo {
fun set(p1: Any?, p2: Any?, p3: Any?)
}
@@ -1,6 +1,6 @@
var x : Int <caret>by Baz()
trait Foo {
interface Foo {
fun get(p1: Any?, p2: Any?): Int = 1
}
@@ -2,10 +2,10 @@ fun test(f: Foo) {
for(i <caret>in f) {}
}
trait Foo
interface Foo
fun Foo.iterator(): Iterator
trait Iterator
interface Iterator
fun Iterator.next(): Any
fun Iterator.hasNext(): Boolean
@@ -2,11 +2,11 @@ fun test(f: Foo) {
for(i <caret>in f) {}
}
trait Foo {
interface Foo {
fun iterator(): Iterator
}
trait Iterator {
interface Iterator {
fun next(): Any
fun hasNext(): Boolean
}
@@ -2,11 +2,11 @@ fun test(f: Foo) {
for(i <caret>in f) {}
}
trait Foo {
interface Foo {
fun iterator(): Iterator
}
trait Iterator {
interface Iterator {
fun hasNext(): Boolean
}