Introduce FIR_IDENTICAL for FIR vs old frontend tests #KT-36879 Fixed
This commit is contained in:
-14
@@ -1,14 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class A(val map: MutableMap<String, CharSequence>) {
|
||||
|
||||
var a: String by map.withDefault1 { "foo" }
|
||||
}
|
||||
|
||||
operator fun <G> MutableMap<in String, in G>.getValue(thisRef: Any?, property: KProperty<*>): G = throw Exception()
|
||||
|
||||
operator fun <S> MutableMap<in String, in S>.setValue(thisRef: Any?, property: KProperty<*>, value: S) {}
|
||||
|
||||
fun <K, V> MutableMap<K, V>.withDefault1(default: (key: K) -> V): MutableMap<K, V> = this
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
//KT-6081 Chained generic method calls: wrong type inference
|
||||
|
||||
class Bar<T>
|
||||
|
||||
fun <T> bar(): Bar<T> = null!!
|
||||
|
||||
class Foo {
|
||||
fun <R> add(bar: Bar<R>): Foo {return this}
|
||||
}
|
||||
|
||||
fun doesNotWork(bi: Bar<Int>, bs: Bar<String>) {
|
||||
Foo().add(bi).add(bs)
|
||||
}
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
//KT-6081 Chained generic method calls: wrong type inference
|
||||
|
||||
|
||||
Reference in New Issue
Block a user