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
@@ -1,5 +1,5 @@
// "Create class 'Foo'" "true"
trait A
interface A
fun test(): A = <caret>Foo(2, "2")
@@ -1,6 +1,6 @@
// "Create class 'Foo'" "true"
trait A
interface A
fun test(): A = Foo(2, "2")
@@ -1,6 +1,6 @@
// "Create class 'Foo'" "true"
// ERROR: Unresolved reference: Foo
trait T
interface T
fun test(): T = J.Foo(2, "2")
@@ -1,6 +1,6 @@
// "Create class 'Foo'" "true"
// ERROR: Unresolved reference: Foo
trait T
interface T
fun test(): T = J.<caret>Foo(2, "2")
@@ -3,6 +3,6 @@ package p
fun foo(): X = <caret>A
trait X {
interface X {
}
@@ -7,6 +7,6 @@ object A : X {
}
trait X {
interface X {
}
@@ -1,6 +1,6 @@
// "Create extension function 'foo'" "true"
trait T
interface T
fun test(t: T) {
val b: Boolean = t.<caret>foo("1", 2)
@@ -1,6 +1,6 @@
// "Create extension function 'foo'" "true"
trait T
interface T
fun test(t: T) {
val b: Boolean = t.foo("1", 2)
@@ -1,6 +1,6 @@
// "Create function 'foo'" "true"
trait T
interface T
fun test(t: T) {
val b: Boolean = t.<caret>foo("1", 2)
@@ -1,6 +1,6 @@
// "Create function 'foo'" "true"
trait T {
interface T {
fun foo(s: String, i: Int): Boolean
}
@@ -1,6 +1,6 @@
// "Create secondary constructor" "true"
trait T
interface T
class A: T
@@ -1,6 +1,6 @@
// "Create secondary constructor" "true"
trait T
interface T
class A: T {
constructor(i: Int) {
@@ -1,7 +1,7 @@
// "Create secondary constructor" "false"
// ERROR: This class does not have a constructor
trait T {
interface T {
}
@@ -1,7 +1,7 @@
// "Create secondary constructor" "false"
// ERROR: Too many arguments for public constructor Any() defined in kotlin.Any
trait T {
interface T {
}
@@ -4,7 +4,7 @@
// ACTION: Create property 'foo'
// ERROR: Unresolved reference: foo
trait A {
interface A {
val test: Int get() {
return <caret>foo
}
@@ -1,6 +1,6 @@
// "Create parameter 'value'" "true"
// DISABLE-ERRORS
trait Tr {
interface Tr {
fun foo(value: String, b: String) = ""
fun bar() = foo(<caret>value, b)
}
@@ -1,6 +1,6 @@
// "Create parameter 'value'" "true"
// DISABLE-ERRORS
trait Tr {
interface Tr {
fun foo(value: String, b: String) = ""
fun bar(value: String) = foo(value, b)
}