KT-14282 No error on unused type alias with -language-version 1.0

Always resolve descriptors for type aliases.
This commit is contained in:
Dmitry Petrov
2016-10-11 11:45:40 +03:00
parent 206374cd17
commit 2cd6b1d586
11 changed files with 28 additions and 13 deletions
+5
View File
@@ -0,0 +1,5 @@
-language-version
1.0
$TESTDATA_DIR$/unsupportedTypeAlias.kt
-d
$TEMP_DIR$
+3
View File
@@ -0,0 +1,3 @@
package test
typealias Unused = String
+4
View File
@@ -0,0 +1,4 @@
compiler/testData/cli/jvm/unsupportedTypeAlias.kt:3:1: error: the feature is only available since Kotlin 1.1: type aliases
typealias Unused = String
^
COMPILATION_ERROR