[FIR] Add FirConstValWithGetterOrDelegateChecker

This commit is contained in:
Br0mm
2021-03-09 18:36:25 +03:00
committed by TeamCityServer
parent 93f711e2b8
commit 75e4c74256
15 changed files with 129 additions and 19 deletions
@@ -1,12 +0,0 @@
// !DIAGNOSTICS: -CAST_NEVER_SUCCEEDS -UNUSED_PARAMETER
class Foo<K>
fun <T> getFoo(value: T) = null as Foo<out Foo<T>>
fun <R> takeLambda(block: () -> R) {}
fun main(x: Int) {
takeLambda {
getFoo(x)
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -CAST_NEVER_SUCCEEDS -UNUSED_PARAMETER
class Foo<K>