Launch ResolvedCallsTest with kotlin library
This commit is contained in:
@@ -9,5 +9,3 @@ fun bar(a: A, b: B) {
|
|||||||
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:
|
||||||
|
|
||||||
|
|||||||
-2
@@ -11,5 +11,3 @@ fun bar(a: A, b: B) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
|
|||||||
@@ -7,5 +7,3 @@ fun bar(f: Foo, i: Int) {
|
|||||||
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