KT-14282 No error on unused type alias with -language-version 1.0
Always resolve descriptors for type aliases.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-language-version
|
||||
1.0
|
||||
$TESTDATA_DIR$/unsupportedTypeAlias.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
typealias Unused = String
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user