Filter out typealiases invisible due to API_VERSION < their SinceKotlin version, when determining excluded imports.

This commit is contained in:
Ilya Gorbunov
2016-10-20 21:23:21 +03:00
parent 11b03ebbb3
commit 82364ad3e5
8 changed files with 54 additions and 6 deletions
@@ -0,0 +1,3 @@
// FILE: test.kt
val fooException = Exception("foo")
val barException = kotlin.Exception("bar")
@@ -0,0 +1,4 @@
package
public val barException: java.lang.Exception
public val fooException: java.lang.Exception
@@ -0,0 +1,5 @@
// !LANGUAGE: +TypeAliases
// !API_VERSION: 1.0
// FILE: test.kt
val fooException = Exception("foo")
val barException = kotlin.<!UNRESOLVED_REFERENCE!>Exception<!>("bar")
@@ -0,0 +1,4 @@
package
public val barException: [ERROR : Type for kotlin.Exception("bar")]
public val fooException: java.lang.Exception
@@ -0,0 +1,4 @@
// !LANGUAGE: -TypeAliases
// FILE: test.kt
val fooException = Exception("foo")
val barException = kotlin.<!UNRESOLVED_REFERENCE!>Exception<!>("bar")
@@ -0,0 +1,4 @@
package
public val barException: [ERROR : Type for kotlin.Exception("bar")]
public val fooException: java.lang.Exception