Report error on non-top-level type aliases (unsupported in 1.1).
Get rid of nested type aliases in project.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
typealias Test1 = String
|
||||
|
||||
fun foo() {
|
||||
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
|
||||
typealias TestLocal = String
|
||||
}
|
||||
|
||||
class C {
|
||||
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
|
||||
typealias TestNested = String
|
||||
}
|
||||
Reference in New Issue
Block a user