KT-14307, KT-14377: Run declaration checks on local type aliases.

This commit is contained in:
Dmitry Petrov
2016-10-17 12:32:27 +03:00
parent 6a72cebe88
commit 1600037625
7 changed files with 38 additions and 4 deletions
@@ -0,0 +1,3 @@
fun outer() {
<!WRONG_MODIFIER_TARGET!>companion<!> typealias TestLocal = Any
}
@@ -0,0 +1,3 @@
package
public fun outer(): kotlin.Unit
@@ -0,0 +1,5 @@
fun outer() {
typealias Test1 = <!RECURSIVE_TYPEALIAS_EXPANSION!>Test1<!>
typealias Test2 = <!RECURSIVE_TYPEALIAS_EXPANSION!>List<Test2><!>
typealias Test3<T> = List<<!UNRESOLVED_REFERENCE!>Test3<!><T>>
}
@@ -0,0 +1,3 @@
package
public fun outer(): kotlin.Unit