Launch ResolvedCallsTest with kotlin library

This commit is contained in:
Svetlana Isakova
2014-07-19 09:47:33 +04:00
parent e4e09d6c70
commit e7c285e0e0
7 changed files with 4 additions and 16 deletions
@@ -8,6 +8,4 @@ fun bar(a: A, b: B) {
with (a) {
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:
@@ -10,6 +10,4 @@ fun bar(a: A, b: B) {
<caret>foo()
}
}
}
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
}
@@ -12,8 +12,6 @@ fun bar(a: A, b: B) {
}
}
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
Resolved call:
@@ -6,6 +6,4 @@ fun bar(f: Foo, i: Int) {
with (i) {
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:
@@ -42,7 +42,7 @@ import org.jetbrains.jet.lang.descriptors.DeclarationDescriptor
import org.jetbrains.jet.lang.resolve.scopes.receivers.ClassReceiver
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) {
val text = JetTestUtils.doLoadFile(File(filePath))!!