Override/Implement: Make return type non-nullable (platform collection case) when overriding Java method

#KT-13455 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-16 15:05:01 +03:00
parent ac6f0b5419
commit 238f99aa3d
7 changed files with 37 additions and 10 deletions
@@ -0,0 +1,7 @@
package foo;
import java.util.List;
public interface A {
List<String> foo();
}
@@ -0,0 +1,5 @@
import foo.A
class B : A {
<caret>
}
@@ -0,0 +1,7 @@
import foo.A
class B : A {
override fun foo(): MutableList<String> {
<selection><caret>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
}