Override/Implement: Prefer not-nullable return type when overriding Java method without nullability annotation

#KT-12381 Fixed
(cherry picked from commit 2b87f8e)
This commit is contained in:
Alexey Sedunov
2016-06-22 13:15:29 +03:00
parent 542f8d9fd2
commit f9d28bf76d
10 changed files with 35 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
import foo.Intf
class Impl(): Intf {
override fun getFooBar(): String? {
override fun getFooBar(): String {
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
}