FE: use proper version in version requirement error message
#KT-48690 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
$TESTDATA_DIR$/requireKotlinCompilerVersion.kt
|
||||
-classpath
|
||||
$TESTDATA_DIR$/requireKotlinCompilerVersion
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
@@ -0,0 +1,16 @@
|
||||
// Library part (build separately)
|
||||
|
||||
//@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||
//package test.access
|
||||
//
|
||||
//import kotlin.internal.RequireKotlin
|
||||
//import kotlin.internal.RequireKotlinVersionKind
|
||||
//
|
||||
//@RequireKotlin("9.9.90", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||
//class Foo
|
||||
|
||||
import test.access.Foo
|
||||
|
||||
fun main() {
|
||||
Foo()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:12:20: error: 'Foo' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$
|
||||
import test.access.Foo
|
||||
^
|
||||
compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:15:5: error: 'Foo' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$
|
||||
Foo()
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
Binary file not shown.
Reference in New Issue
Block a user