Java to Kotlin converter: correct nullability in signatures of overrides

#KT-5269 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-06-20 19:26:39 +04:00
parent 2188af2bf9
commit 5ac762034a
16 changed files with 153 additions and 25 deletions
+13
View File
@@ -1,5 +1,10 @@
package javaApi;
import org.jetbrains.annotations.Nullable;
import java.lang.Override;
import java.lang.String;
public @interface Anon1 {
String[] value();
String[] stringArray();
@@ -43,3 +48,11 @@ public @interface Anon8 {
public enum E {
A, B, C
}
class Base {
public @Nullable String foo(@Nullable String s) { return s; }
}
class Derived extends Base {
public String foo(String s) { return s; }
}