Tests: add runtime (and runtime sources) to some tests that rely on being able to resolve references to built ins

This commit is contained in:
Pavel V. Talanov
2015-12-10 17:22:45 +03:00
parent 539b84b561
commit a667aa2f71
50 changed files with 81 additions and 16 deletions
@@ -1,4 +1,5 @@
// "Create extension function 'plus'" "true"
// WITH_RUNTIME
class A<T>(val n: T)
@@ -1,4 +1,5 @@
// "Create extension function 'plus'" "true"
// WITH_RUNTIME
class A<T>(val n: T)
@@ -1,4 +1,5 @@
// "Create extension function '!u00A0'" "true"
// WITH_RUNTIME
fun test() {
val t: Int = 1 <caret>`!u00A0` 2
@@ -1,4 +1,5 @@
// "Create extension function '!u00A0'" "true"
// WITH_RUNTIME
fun test() {
val t: Int = 1 `!u00A0` 2
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
fun test() {
val a: Int = Unit.<caret>foo(2)
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
fun test() {
val a: Int = Unit.foo(2)
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
class A<T>(val n: T)
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
class A<T>(val n: T)
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
class A<T>(val items: List<T>) {
fun test(): Int {
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
fun <T, U> T.map(f: T.() -> U) = f()
fun consume(s: String) {}
@@ -1,4 +1,5 @@
// "Create extension function 'foo'" "true"
// WITH_RUNTIME
fun <T, U> T.map(f: T.() -> U) = f()
fun consume(s: String) {}
@@ -1,4 +1,5 @@
// "Create extension function 'component2'" "true"
// WITH_RUNTIME
class FooIterator<T> {
operator fun hasNext(): Boolean { return false }
operator fun next(): Any {
@@ -1,4 +1,5 @@
// "Create extension function 'component2'" "true"
// WITH_RUNTIME
class FooIterator<T> {
operator fun hasNext(): Boolean { return false }
operator fun next(): Any {
@@ -1,4 +1,5 @@
// "Create extension function 'get'" "true"
// WITH_RUNTIME
fun x (y: Any) {
val z: Any = y<caret>[""]
@@ -1,4 +1,5 @@
// "Create extension function 'get'" "true"
// WITH_RUNTIME
fun x (y: Any) {
val z: Any = y[""]
@@ -1,4 +1,5 @@
// "Create extension function 'invoke'" "true"
// WITH_RUNTIME
class A<T>(val n: T)
@@ -1,4 +1,5 @@
// "Create extension function 'invoke'" "true"
// WITH_RUNTIME
class A<T>(val n: T)
@@ -1,4 +1,5 @@
// "Create extension function 'set'" "true"
// WITH_RUNTIME
class Foo<T> {
fun <T> x (y: Any, w: java.util.ArrayList<T>) {
@@ -1,6 +1,7 @@
import java.util.ArrayList
// "Create extension function 'set'" "true"
// WITH_RUNTIME
class Foo<T> {
fun <T> x (y: Any, w: java.util.ArrayList<T>) {
@@ -1,4 +1,5 @@
// "Create extension function 'unaryMinus'" "true"
// WITH_RUNTIME
fun test() {
val a = <caret>-false
@@ -1,4 +1,5 @@
// "Create extension function 'unaryMinus'" "true"
// WITH_RUNTIME
fun test() {
val a = -false