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:
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'plus'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val n: T)
|
||||
|
||||
|
||||
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'plus'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val n: T)
|
||||
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function '!u00A0'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test() {
|
||||
val t: Int = 1 <caret>`!u00A0` 2
|
||||
|
||||
+1
@@ -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
@@ -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
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'foo'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val n: T)
|
||||
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'foo'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'foo'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'foo'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'foo'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
idea/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionWithReceiverArg.kt
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'foo'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'foo'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val items: List<T>) {
|
||||
fun test(): Int {
|
||||
|
||||
+1
@@ -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
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'foo'" "true"
|
||||
// WITH_RUNTIME
|
||||
fun <T, U> T.map(f: T.() -> U) = f()
|
||||
|
||||
fun consume(s: String) {}
|
||||
|
||||
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'component2'" "true"
|
||||
// WITH_RUNTIME
|
||||
class FooIterator<T> {
|
||||
operator fun hasNext(): Boolean { return false }
|
||||
operator fun next(): Any {
|
||||
|
||||
Vendored
+1
@@ -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
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'get'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun x (y: Any) {
|
||||
val z: Any = y<caret>[""]
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'get'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun x (y: Any) {
|
||||
val z: Any = y[""]
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'invoke'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val n: T)
|
||||
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'invoke'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A<T>(val n: T)
|
||||
|
||||
|
||||
+1
@@ -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
@@ -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
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'unaryMinus'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test() {
|
||||
val a = <caret>-false
|
||||
|
||||
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
// "Create extension function 'unaryMinus'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test() {
|
||||
val a = -false
|
||||
|
||||
Reference in New Issue
Block a user