FIR Completion: Enable passing tests

This commit is contained in:
Roman Golyshev
2020-09-09 14:26:44 +03:00
parent dcc22d3e5d
commit edb277b30a
13 changed files with 26 additions and 0 deletions
@@ -1,3 +1,5 @@
// FIR_COMPARISON
val Int.f: Float get() = this.toFloat()
val test = 1.<caret>
@@ -1,3 +1,5 @@
// FIR_COMPARISON
class TestClassName
type TestAlias = TestClassName
@@ -1,3 +1,5 @@
// FIR_COMPARISON
class Foo(val a: Int, b: Int) {
val e: Int
get() = <caret>
@@ -1,3 +1,5 @@
// FIR_COMPARISON
class A {
public fun foo(): Int = 1
public val bar: Int = 1
@@ -1,3 +1,5 @@
// FIR_COMPARISON
interface FooBar1
interface FooBar2 {
@@ -1,3 +1,5 @@
// FIR_COMPARISON
class C {
val prop: List<F<caret>>
}
@@ -1,3 +1,5 @@
// FIR_COMPARISON
class C<TParam> {
val v: List<T<caret>
}
@@ -1,3 +1,5 @@
// FIR_COMPARISON
class X<T> {
class Nested {
val v: <caret>
@@ -1,3 +1,5 @@
// FIR_COMPARISON
object Obj {
class NestedInObject {
companion object {
@@ -1,3 +1,5 @@
// FIR_COMPARISON
object Obj {
val inObject = 1
}
@@ -1,3 +1,5 @@
// FIR_COMPARISON
class Cls {
object Obj {
val inObject = 1
@@ -1,3 +1,5 @@
// FIR_COMPARISON
fun foo(p: () -> Unit): String = ""
val xxx: String = foo { <caret> }
@@ -1,3 +1,5 @@
// FIR_COMPARISON
import kotlin.properties.*
val x: ReadOnlyPr<caret>