Add tests for obsolete issues

#KT-38804 Obsolete
 #KT-38801 Obsolete
 #KT-38835 Obsolete
 #KT-38737 Obsolete
 #KT-38664 Obsolete
 #KT-38549 Obsolete
 #KT-38766 Obsolete
 #KT-38714 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2020-08-11 10:11:47 +03:00
parent 7f4df19dd1
commit 2e131b870a
30 changed files with 503 additions and 0 deletions
@@ -0,0 +1,17 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
open class A {
open val servers: List<C>
get() = findAndExpand({ "hi" })
.mapNotNull { B.foo(it) }
fun findAndExpand(vararg path: () -> String): List<String> = TODO()
}
object B {
inline fun <reified T : C> foo(bar: String?): T? = TODO()
}
open class C
class D : C()