Launch ResolvedCallsTest with kotlin library
This commit is contained in:
@@ -8,6 +8,4 @@ fun bar(a: A, b: B) {
|
|||||||
with (a) {
|
with (a) {
|
||||||
b.<caret>foo()
|
b.<caret>foo()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
|
|
||||||
@@ -10,8 +10,6 @@ fun bar(a: A, b: B) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
|
|
||||||
|
|
||||||
|
|
||||||
Resolved call:
|
Resolved call:
|
||||||
|
|
||||||
|
|||||||
+1
-3
@@ -10,6 +10,4 @@ fun bar(a: A, b: B) {
|
|||||||
<caret>foo()
|
<caret>foo()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
|
|
||||||
-2
@@ -12,8 +12,6 @@ fun bar(a: A, b: B) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
|
|
||||||
|
|
||||||
|
|
||||||
Resolved call:
|
Resolved call:
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,4 @@ fun bar(f: Foo, i: Int) {
|
|||||||
with (i) {
|
with (i) {
|
||||||
f<caret>()
|
f<caret>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun <T, R> with(receiver: T, f: T.() -> R) : R = throw Exception()
|
|
||||||
@@ -8,8 +8,6 @@ fun bar(f: Foo, i: Int) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun <T, R> with(receiver: T, f: T.() -> R) : R = throw Exception()
|
|
||||||
|
|
||||||
|
|
||||||
Resolved call:
|
Resolved call:
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ import org.jetbrains.jet.lang.descriptors.DeclarationDescriptor
|
|||||||
import org.jetbrains.jet.lang.resolve.scopes.receivers.ClassReceiver
|
import org.jetbrains.jet.lang.resolve.scopes.receivers.ClassReceiver
|
||||||
|
|
||||||
public abstract class AbstractResolvedCallsTest() : JetLiteFixture() {
|
public abstract class AbstractResolvedCallsTest() : JetLiteFixture() {
|
||||||
override fun createEnvironment(): JetCoreEnvironment = createEnvironmentWithMockJdk(ConfigurationKind.JDK_ONLY)
|
override fun createEnvironment(): JetCoreEnvironment = createEnvironmentWithMockJdk(ConfigurationKind.ALL)
|
||||||
|
|
||||||
public fun doTest(filePath: String) {
|
public fun doTest(filePath: String) {
|
||||||
val text = JetTestUtils.doLoadFile(File(filePath))!!
|
val text = JetTestUtils.doLoadFile(File(filePath))!!
|
||||||
|
|||||||
Reference in New Issue
Block a user