Java to Kotlin converter: supported try-with-resource construct, fixed anonymous class generation + fixed a bug with method return type
#KT-4488 Fixed
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//file
|
||||
import kotlinApi.KotlinTrait;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class C {
|
||||
void foo() {
|
||||
KotlinTrait t = new KotlinTrait() {
|
||||
@Nullable
|
||||
@Override
|
||||
public String nullableFun() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String notNullableFun() {
|
||||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int nonAbstractFun() {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user