FIR IDE: fix typo in test directory (overridden)

This commit is contained in:
Jinseong Jeon
2021-10-23 23:22:31 -07:00
committed by Ilya Kirillov
parent 907d2e9ed4
commit 4266ffa274
23 changed files with 28 additions and 28 deletions
@@ -0,0 +1,4 @@
val i: Int = 1
get() {
return f<caret>ield
}
@@ -0,0 +1,2 @@
ALL:
DIRECT:
@@ -0,0 +1,9 @@
fun foo() {
open class A {
open fun foo() {}
}
object : A() {
override fun fo<caret>o() {}
}
}
@@ -0,0 +1,4 @@
ALL:
foo.A.foo(): Unit
DIRECT:
foo.A.foo(): Unit
@@ -0,0 +1,9 @@
fun foo() {
open class A {
open fun foo() {}
}
class B : A() {
override fun fo<caret>o() {}
}
}
@@ -0,0 +1,4 @@
ALL:
foo.A.foo(): Unit
DIRECT:
foo.A.foo(): Unit
@@ -0,0 +1,18 @@
// FILE: main.kt
class A : B(){
override fun fo<caret>o(x: Int): Int
}
// FILE: B.kt
abstract class B {
open fun foo(x: Int): Int
abstract fun foo(x: String): Int
}
// RESULT
// ALL:
// B.foo(x: Int): Int
// DIRECT:
// B.foo(x: Int): Int
@@ -0,0 +1,4 @@
ALL:
B.foo(x: Int): Int
DIRECT:
B.foo(x: Int): Int
@@ -0,0 +1,33 @@
// FILE: main.kt
class A : B {
override fun foo(x: Int) {
}
override fun foo<caret>(x: String) {
}
}
// FILE: B.kt
interface B: C, D
// FILE: C.kt
interface C {
fun foo(x: Int)
fun foo(x: String)
}
// FILE: D.kt
interface D {
fun foo(x: Int)
fun foo(x: String)
}
// RESULT
// ALL:
// C.foo(x: String): Unit
// D.foo(x: String): Unit
// DIRECT:
// C.foo(x: String): Unit
// D.foo(x: String): Unit
@@ -0,0 +1,6 @@
ALL:
C.foo(x: String): Unit
D.foo(x: String): Unit
DIRECT:
C.foo(x: String): Unit
D.foo(x: String): Unit
@@ -0,0 +1,33 @@
// FILE: main.kt
class A : B, C {
override fun foo(x: Int) {
}
override fun foo<caret>(x: String) {
}
}
// FILE: B.kt
interface B: C, D
// FILE: C.kt
interface C {
fun foo(x: Int)
fun foo(x: String)
}
// FILE: D.kt
interface D {
fun foo(x: Int)
fun foo(x: String)
}
// RESULT
// ALL:
// C.foo(x: String): Unit
// D.foo(x: String): Unit
// DIRECT:
// C.foo(x: String): Unit
// D.foo(x: String): Unit
@@ -0,0 +1,6 @@
ALL:
C.foo(x: String): Unit
D.foo(x: String): Unit
DIRECT:
C.foo(x: String): Unit
D.foo(x: String): Unit
@@ -0,0 +1,26 @@
// FILE: main.kt
class A : B() {
override val x<caret>: Int get() = super.x
}
// FILE: B.java
public class B extends C {
@Override
public int getX() {
return 0;
}
}
// FILE: C.kt
abstract class C {
abstract val x: Int
}
// RESULT
// ALL:
// /B.x: Int
// C.x: Int
// DIRECT:
// /B.x: Int
@@ -0,0 +1,5 @@
ALL:
/B.x: Int
C.x: Int
DIRECT:
/B.x: Int
@@ -0,0 +1,38 @@
// FILE: main.kt
class A : B, C, D {
override fun foo(x: Int) {
}
override fun foo<caret>(x: String) {
}
}
// FILE: B.kt
interface B {
fun foo(x: Int)
fun foo(x: String)
}
// FILE: C.kt
interface C {
fun foo(x: Int)
fun foo(x: String)
}
// FILE: D.kt
interface D {
fun foo(x: Int)
fun foo(x: String)
}
// RESULT
// ALL:
// B.foo(x: String): Unit
// C.foo(x: String): Unit
// D.foo(x: String): Unit
// DIRECT:
// B.foo(x: String): Unit
// C.foo(x: String): Unit
// D.foo(x: String): Unit
@@ -0,0 +1,8 @@
ALL:
B.foo(x: String): Unit
C.foo(x: String): Unit
D.foo(x: String): Unit
DIRECT:
B.foo(x: String): Unit
C.foo(x: String): Unit
D.foo(x: String): Unit
@@ -0,0 +1,4 @@
// DISABLE_DEPENDED_MODE
enum class MyEnum {
My<caret>Entry
}
@@ -0,0 +1,2 @@
ALL:
DIRECT:
@@ -0,0 +1,29 @@
// FILE: main.kt
class A : B() {
override fun foo<caret>(x: Int) {}
}
// FILE: B.kt
open class B : C() {
override fun foo(x: Int) {}
}
// FILE: C.kt
open class C : D() {
override fun foo(x: Int) {}
}
// FILE: D.kt
open class D {
open fun foo(x: Int) {}
}
// RESULT
// ALL:
// B.foo(x: Int): Unit
// C.foo(x: Int): Unit
// D.foo(x: Int): Unit
// DIRECT:
// B.foo(x: Int): Unit
@@ -0,0 +1,6 @@
ALL:
B.foo(x: Int): Unit
C.foo(x: Int): Unit
D.foo(x: Int): Unit
DIRECT:
B.foo(x: Int): Unit