Fix tests ('infix')
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ fun <T> id(t: T): T = t
|
||||
|
||||
//binary expressions
|
||||
//identifier
|
||||
fun <T> Z.foo(a: A<T>): A<T> = a
|
||||
infix fun <T> Z.foo(a: A<T>): A<T> = a
|
||||
|
||||
fun test(z: Z) {
|
||||
z <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>foo<!> <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>newA<!>()
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ package h {
|
||||
public fun use(/*0*/ vararg a: kotlin.Any? /*kotlin.Array<out kotlin.Any?>*/): kotlin.Array<out kotlin.Any?>
|
||||
public operator fun </*0*/ T> h.Z.compareTo(/*0*/ a: h.A<T>): kotlin.Int
|
||||
public fun h.Z.equals(/*0*/ any: kotlin.Any): kotlin.Int
|
||||
public fun </*0*/ T> h.Z.foo(/*0*/ a: h.A<T>): h.A<T>
|
||||
public infix fun </*0*/ T> h.Z.foo(/*0*/ a: h.A<T>): h.A<T>
|
||||
public operator fun </*0*/ T> h.Z.plus(/*0*/ a: h.A<T>): h.A<T>
|
||||
|
||||
public interface A</*0*/ T> {
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
package aaa
|
||||
|
||||
fun <T> T.foo(t: T) = t
|
||||
infix fun <T> T.foo(t: T) = t
|
||||
|
||||
fun <T> id(t: T) = t
|
||||
|
||||
|
||||
+1
-1
@@ -3,5 +3,5 @@ package
|
||||
package aaa {
|
||||
public fun a(): kotlin.Unit
|
||||
public fun </*0*/ T> id(/*0*/ t: T): T
|
||||
public fun </*0*/ T> T.foo(/*0*/ t: T): T
|
||||
public infix fun </*0*/ T> T.foo(/*0*/ t: T): T
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ public fun <T> query(<!UNUSED_PARAMETER!>t<!>: T, <!UNUSED_PARAMETER!>args<!>: M
|
||||
fun test(pair: Pair<String, Int>) {
|
||||
val id = "Hello" // variable is marked as unused
|
||||
|
||||
println("Some" + query(0, mapOf(id to 1)))
|
||||
println("Some" + query(0, mapOf(id to 1)))
|
||||
|
||||
println("Some" + query(0, mapOf(pair)))
|
||||
}
|
||||
@@ -19,7 +19,7 @@ fun test(pair: Pair<String, Int>) {
|
||||
//from standard library
|
||||
fun <K, V> mapOf(vararg <!UNUSED_PARAMETER!>values<!>: Pair<K, V>): Map<K, V> { throw Exception() }
|
||||
|
||||
fun <A,B> A.to(<!UNUSED_PARAMETER!>that<!>: B): Pair<A, B> { throw Exception() }
|
||||
infix fun <A,B> A.to(<!UNUSED_PARAMETER!>that<!>: B): Pair<A, B> { throw Exception() }
|
||||
|
||||
fun println(<!UNUSED_PARAMETER!>message<!> : Any?) { throw Exception() }
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ package b {
|
||||
public fun </*0*/ T> query(/*0*/ t: T, /*1*/ args: kotlin.Map<kotlin.String, kotlin.Any>): kotlin.List<T>
|
||||
public fun test(/*0*/ pair: b.Pair<kotlin.String, kotlin.Int>): kotlin.Unit
|
||||
public fun test(/*0*/ t: kotlin.String): kotlin.Unit
|
||||
public fun </*0*/ A, /*1*/ B> A.to(/*0*/ that: B): b.Pair<A, B>
|
||||
public infix fun </*0*/ A, /*1*/ B> A.to(/*0*/ that: B): b.Pair<A, B>
|
||||
|
||||
public final class Pair</*0*/ out A, /*1*/ out B> {
|
||||
public constructor Pair</*0*/ out A, /*1*/ out B>()
|
||||
|
||||
Reference in New Issue
Block a user