Switch JetMultifileBasicCompletionTest to generated approach

This commit is contained in:
Pavel V. Talanov
2014-04-01 15:14:14 +04:00
parent 4c634d5c67
commit 6ba8e4c4b1
31 changed files with 130 additions and 140 deletions
@@ -1,9 +0,0 @@
package second
class Some
// Two function to prevent automatic insert
fun Some.extensionFunction1() = 12
fun Some.extensionFunction2() = 12
fun foo() = Some()
@@ -0,0 +1,9 @@
package second
class Some
// Two function to prevent automatic insert
fun Some.extensionFunction1(): Int = 12
fun Some.extensionFunction2(): Int = 12
fun foo(): Some = Some()
@@ -1,11 +0,0 @@
package first
fun firstFun() {
val a = SomeUnknownClass()
a.hello<caret>
}
// ABSENT: helloFun
// ABSENT: helloFunPreventAutoInsert
// ABSENT: helloWithParams
// NUMBER: 0
@@ -1,11 +0,0 @@
package second
fun String.helloFun() {
}
fun String.helloWithParams(i : Int) : String {
return ""
}
fun String.helloFunPreventAutoInsert() {
}
@@ -1,12 +0,0 @@
package first
import second.SomeTestClass
fun firstFun() {
SomeTestClass().some<caret>
}
// EXIST: someProperty
// EXIST: someOtherProperty
// EXIST: someSelfProperty
// NUMBER: 3
@@ -1,8 +0,0 @@
package second
class SomeTestClass() {
}
val SomeTestClass.someProperty = 12
var SomeTestClass.someOtherProperty = ""
val SomeTestClass.someSelfProperty = SomeTestClass()
@@ -6,4 +6,4 @@ class Some {
fun testFunction2() : Int = 12
}
fun someWithLiteral(body: (Some) -> Unit) = 12
fun someWithLiteral(body: (Some) -> Unit): Int = 12