IDE testdata: s/trait/interface
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
trait A
|
||||
interface A
|
||||
|
||||
fun test(): A = <caret>Foo(2, "2")
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
trait A
|
||||
interface A
|
||||
|
||||
fun test(): A = Foo(2, "2")
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
trait T
|
||||
interface T
|
||||
|
||||
fun test(): T = J.Foo(2, "2")
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
trait T
|
||||
interface T
|
||||
|
||||
fun test(): T = J.<caret>Foo(2, "2")
|
||||
+1
-1
@@ -3,6 +3,6 @@ package p
|
||||
|
||||
fun foo(): X = <caret>A
|
||||
|
||||
trait X {
|
||||
interface X {
|
||||
|
||||
}
|
||||
+1
-1
@@ -7,6 +7,6 @@ object A : X {
|
||||
|
||||
}
|
||||
|
||||
trait X {
|
||||
interface X {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user