Fix types enhancement for properties' getters overrides in Java
Prior to the 1.1.4, nullability related annotations were stored
in types that became hard to maintain at some moment and
we got rid of it (see 57b7b91444)
But enhancement for properties overrides stopped working
because there were effectively no annotations in the
resulting descriptor
#KT-19409 Fixed
#KT-19409 Fixed
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// FILE: VcsException.java
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class VcsException extends Exception {
|
||||
@Override
|
||||
@NotNull
|
||||
public String getMessage() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
fun foo(e: VcsException) {
|
||||
e.message.contains("")
|
||||
"" in e.message
|
||||
}
|
||||
|
||||
public operator fun CharSequence.contains(other: CharSequence): Boolean = true
|
||||
Reference in New Issue
Block a user