IDE testdata: s/trait/interface
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun foo() {
|
||||
open class Z(p: Int)
|
||||
trait T;
|
||||
interface T;
|
||||
|
||||
{
|
||||
<selection>class A: Z(1), T</selection>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// DISABLE-ERRORS
|
||||
fun foo() {
|
||||
trait T
|
||||
interface T
|
||||
open class Z(p: Int): T;
|
||||
|
||||
{
|
||||
|
||||
+6
-6
@@ -1,25 +1,25 @@
|
||||
fun foo() {
|
||||
<selection>{
|
||||
open class Z<T>(p: T)
|
||||
trait T
|
||||
interface T
|
||||
class A: Z<Int>(1), T
|
||||
}</selection>
|
||||
|
||||
{
|
||||
open class Z<A>(r: A)
|
||||
trait T
|
||||
interface T
|
||||
class B: Z<Int>(1), T
|
||||
}
|
||||
|
||||
{
|
||||
open class T<A>(r: A)
|
||||
trait Z
|
||||
interface Z
|
||||
class C: T<Int>(1), Z
|
||||
}
|
||||
|
||||
{
|
||||
open class Z<T>(q: T)
|
||||
trait T
|
||||
interface T
|
||||
class D: Z<Int>(2), T
|
||||
}
|
||||
|
||||
@@ -30,13 +30,13 @@ fun foo() {
|
||||
|
||||
{
|
||||
open class Z<A>(r: A)
|
||||
trait T
|
||||
interface T
|
||||
class F: Z<String>("1"), T
|
||||
}
|
||||
|
||||
{
|
||||
open class Z(r: Int)
|
||||
trait T
|
||||
interface T
|
||||
class B: Z(1), T
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -1,17 +1,17 @@
|
||||
{
|
||||
open class Z<T>(p: T)
|
||||
trait T
|
||||
interface T
|
||||
class A: Z<Int>(1), T
|
||||
}
|
||||
|
||||
{
|
||||
open class Z<A>(r: A)
|
||||
trait T
|
||||
interface T
|
||||
class B: Z<Int>(1), T
|
||||
}
|
||||
|
||||
{
|
||||
open class T<A>(r: A)
|
||||
trait Z
|
||||
interface Z
|
||||
class C: T<Int>(1), Z
|
||||
}
|
||||
@@ -10,7 +10,7 @@ fun foo() {
|
||||
|
||||
class X
|
||||
inner class Y
|
||||
trait T
|
||||
interface T
|
||||
object O
|
||||
|
||||
val p = 1
|
||||
@@ -54,7 +54,7 @@ fun foo() {
|
||||
|
||||
fun a(p: kotlin.Int): kotlin.Int = b(p) + 1
|
||||
|
||||
trait T
|
||||
interface T
|
||||
}
|
||||
|
||||
class C {
|
||||
@@ -67,7 +67,7 @@ fun foo() {
|
||||
|
||||
class X
|
||||
inner class Y
|
||||
trait T
|
||||
interface T
|
||||
object O
|
||||
|
||||
val p = 1
|
||||
@@ -93,7 +93,7 @@ fun foo() {
|
||||
|
||||
class X
|
||||
inner class Y
|
||||
trait T
|
||||
interface T
|
||||
object O
|
||||
|
||||
val q = p + 1
|
||||
@@ -119,7 +119,7 @@ fun foo() {
|
||||
|
||||
class XX
|
||||
inner class Y
|
||||
trait T
|
||||
interface T
|
||||
object O
|
||||
|
||||
val p = 1
|
||||
|
||||
@@ -8,7 +8,7 @@ class A {
|
||||
|
||||
class X
|
||||
inner class Y
|
||||
trait T
|
||||
interface T
|
||||
object O
|
||||
|
||||
val p = 1
|
||||
@@ -52,5 +52,5 @@ class B {
|
||||
|
||||
fun a(p: kotlin.Int): kotlin.Int = b(p) + 1
|
||||
|
||||
trait T
|
||||
interface T
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
fun foo() {
|
||||
open class Z(p: Int)
|
||||
trait T
|
||||
trait U;
|
||||
interface T
|
||||
interface U;
|
||||
|
||||
{
|
||||
<selection>class A: Z(1), T, U</selection>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
fun foo() {
|
||||
trait T
|
||||
interface T
|
||||
|
||||
<selection>fun bar1<A, B, C>(a: A, b: B, c: C): A where B: A, C: B, C: T = c</selection>
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
trait T {
|
||||
interface T {
|
||||
fun foo(): Int
|
||||
}
|
||||
|
||||
trait U: T
|
||||
interface U: T
|
||||
|
||||
fun test(t: T): Int {
|
||||
return if (t is U)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait T {
|
||||
interface T {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait Foo {
|
||||
interface Foo {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user