FIR checker: check TOPLEVEL_TYPEALIASES_ONLY
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6ca005cd70
commit
6769ce0e2b
@@ -9,7 +9,7 @@ typealias TTNullableTString = TNullableTString
|
||||
fun f3() = TTNullableTString::class
|
||||
|
||||
inline fun <reified T> f4(b: Boolean): Any {
|
||||
typealias X = T
|
||||
typealias Y = T?
|
||||
<!TOPLEVEL_TYPEALIASES_ONLY!>typealias X = T<!>
|
||||
<!TOPLEVEL_TYPEALIASES_ONLY!>typealias Y = T?<!>
|
||||
return if (b) <!UNRESOLVED_REFERENCE!>X<!>::class else <!UNRESOLVED_REFERENCE!>Y<!>::class
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user