Report error on non-top-level type aliases (unsupported in 1.1).
Get rid of nested type aliases in project.
Original commit: 4c47d77a9f
This commit is contained in:
@@ -3,7 +3,9 @@ package a
|
||||
class Outer {
|
||||
inner class B(x: String)
|
||||
|
||||
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
|
||||
typealias A1 = B
|
||||
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
|
||||
private typealias A2 = B
|
||||
|
||||
fun A1(x: Any) = x
|
||||
|
||||
@@ -3,7 +3,10 @@ package a
|
||||
class Outer {
|
||||
inner class B(x: String)
|
||||
|
||||
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
|
||||
typealias A1 = B
|
||||
|
||||
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
|
||||
private typealias A2 = B
|
||||
|
||||
fun A1(x: Any) = x
|
||||
|
||||
Reference in New Issue
Block a user