Support type aliases as bare types after 'is/as'.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
typealias L<T> = List<T>
|
||||
|
||||
fun box(): String {
|
||||
val test: Collection<Int> = listOf(1, 2, 3)
|
||||
if (test !is L) return "test !is L"
|
||||
val test2 = test as L
|
||||
if (test.toList() != test2) return "test.toList() != test2"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user