167ab1f860
The `@SinceKotlin("X.Y.Z")` annotation now hides a particular declaration from
resolution when the API version specified by the `-api-version` option is
_less_ than X.Y.Z. The comparison is performed as for versions in Maven:
MavenComparableVersion is in fact a copy of
org.apache.maven.artifact.versioning.ComparableVersion.
Also support "!API_VERSION" directive in diagnostic tests
#KT-14298 Fixed
11 lines
505 B
Plaintext
Vendored
11 lines
505 B
Plaintext
Vendored
compiler/testData/cli/jvm/languageVersion.kt:5:17: error: this type is sealed, so it can be inherited by only its own nested classes or objects
|
|
class Derived : Base()
|
|
^
|
|
compiler/testData/cli/jvm/languageVersion.kt:8:5: error: the feature is only available since Kotlin 1.1: bound callable references
|
|
""::class.isInstance(42)
|
|
^
|
|
compiler/testData/cli/jvm/languageVersion.kt:8:15: error: unresolved reference: isInstance
|
|
""::class.isInstance(42)
|
|
^
|
|
COMPILATION_ERROR
|