FIR: Mark a pack of tests (53) as FIR_IDENTICAL
This commit is contained in:
committed by
teamcityserver
parent
ddbdfafa79
commit
dac9d7b17a
-15
@@ -1,15 +0,0 @@
|
||||
package h
|
||||
|
||||
//traits to make ambiguity with function literal as an argument
|
||||
interface A
|
||||
interface B
|
||||
interface C: A, B
|
||||
|
||||
fun <T> foo(a: A, f: () -> T): T = f()
|
||||
fun <T> foo(b: B, f: () -> T): T = f()
|
||||
|
||||
fun test(c: C) {
|
||||
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>(c) f@ {
|
||||
c<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
|
||||
}
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
package h
|
||||
|
||||
//traits to make ambiguity with function literal as an argument
|
||||
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
fun <T, R> Iterable<T>.map(transform: (T) -> R): List<R> = null!!
|
||||
fun <T> listOf(): List<T> = null!!
|
||||
fun <T> listOf(vararg values: T): List<T> = null!!
|
||||
|
||||
fun commonSystemFailed(a: List<Int>) {
|
||||
a.map {
|
||||
if (it == 0) return@map listOf(it)
|
||||
listOf()
|
||||
}
|
||||
a.map {
|
||||
if (it == 0) return@map listOf()
|
||||
listOf(it)
|
||||
}
|
||||
a.map {
|
||||
if (it == 0) listOf()
|
||||
else listOf(it)
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
fun <T, R> Iterable<T>.map(transform: (T) -> R): List<R> = null!!
|
||||
fun <T> listOf(): List<T> = null!!
|
||||
fun <T> listOf(vararg values: T): List<T> = null!!
|
||||
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
package m
|
||||
|
||||
interface Element
|
||||
|
||||
fun test(handlers: Map<String, Element.()->Unit>) {
|
||||
|
||||
handlers.getOrElse("name", l@ { return@l null })
|
||||
}
|
||||
|
||||
fun <K,V> Map<K,V>.getOrElse(key: K, defaultValue: ()-> V) : V = throw Exception("$key $defaultValue")
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
package m
|
||||
|
||||
interface Element
|
||||
|
||||
Reference in New Issue
Block a user