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
30 lines
509 B
Plaintext
Vendored
30 lines
509 B
Plaintext
Vendored
// -- Module: <m1> --
|
|
package
|
|
|
|
package p1 {
|
|
@kotlin.SinceKotlin(version = "1.1") public fun foo(/*0*/ s: kotlin.Int): kotlin.String
|
|
}
|
|
|
|
|
|
// -- Module: <m2> --
|
|
package
|
|
|
|
package p2 {
|
|
public fun foo(/*0*/ s: kotlin.Int): kotlin.Int
|
|
}
|
|
|
|
|
|
// -- Module: <m3> --
|
|
package
|
|
|
|
public fun test1(): kotlin.Int
|
|
public fun test2(): kotlin.Int
|
|
|
|
package p1 {
|
|
@kotlin.SinceKotlin(version = "1.1") public fun foo(/*0*/ s: kotlin.Int): kotlin.String
|
|
}
|
|
|
|
package p2 {
|
|
public fun foo(/*0*/ s: kotlin.Int): kotlin.Int
|
|
}
|