FIR IDE: add more tests about annotation resolution

This commit is contained in:
Jinseong Jeon
2021-09-24 11:35:02 -07:00
committed by TeamCityServer
parent e95313acbb
commit 464eecef03
32 changed files with 205 additions and 0 deletions
@@ -0,0 +1,8 @@
class A<T>(val value : T)
class B<T>
fun <T> A<T>.toB(): B<T> {
<expr>@Suppress("UNCHECKED_CAST")</expr>
val v = (value as? Long)?.let { it.toInt() } as T ?: value
return v
}