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
@@ -2,6 +2,7 @@
// ERROR: Unresolved reference: foo
// ACTION: Create extension function 'foo'
// ACTION: Replace infix call with ordinary call
// WITH_RUNTIME
fun refer() {
1 <caret>foo 2
}
@@ -1,5 +1,6 @@
// "Create extension property 'foo'" "true"
// ERROR: Property must be initialized
// WITH_RUNTIME
fun test() {
val a: Int = Unit.<caret>foo
@@ -1,5 +1,6 @@
// "Create extension property 'foo'" "true"
// ERROR: Property must be initialized
// WITH_RUNTIME
val Unit.foo: Int
@@ -1,5 +1,6 @@
// "Create extension property 'foo'" "true"
// ERROR: Property must be initialized
// WITH_RUNTIME
class A<T>(val n: T)
@@ -1,5 +1,6 @@
// "Create extension property 'foo'" "true"
// ERROR: Property must be initialized
// WITH_RUNTIME
class A<T>(val n: T)
@@ -1,5 +1,6 @@
// "Create extension property 'foo'" "true"
// ERROR: Property must be initialized
// WITH_RUNTIME
class A<T>(val n: T)
@@ -1,5 +1,6 @@
// "Create extension property 'foo'" "true"
// ERROR: Property must be initialized
// WITH_RUNTIME
class A<T>(val n: T)