[FIR-TEST] Add new testdata generated after changes in previous commit

This commit is contained in:
Dmitriy Novozhilov
2019-12-11 16:16:22 +03:00
parent e9c02a1cca
commit 2536fa0cd5
4578 changed files with 104067 additions and 1 deletions
@@ -0,0 +1,31 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
fun <T> parameter() = fun (t: T) = t
fun <T> receiver() = fun T.() = this
fun <T> returnType() = fun (): T = null!!
val <T> T.fromVal: () -> T get() = fun (): T = this@fromVal
fun devNull(a: Any?){}
fun <O> outer() {
fun <T> parameter() = fun (t: T) = t
fun <T> receiver() = fun T.() = this
fun <T> returnType() = fun (): T = null!!
devNull(fun (t: O) = t)
devNull(fun O.() = this)
devNull(fun (): O = null!!)
}
class Outer<O> {
fun <T> parameter() = fun (t: T) = t
fun <T> receiver() = fun T.() = this
fun <T> returnType() = fun (): T = null!!
init {
devNull(fun (t: O) = t)
devNull(fun O.() = this)
devNull(fun (): O = null!!)
}
}