Update J2K behavior with empty jdk annotations

This commit is contained in:
Denis Zharkov
2015-06-17 14:38:30 +03:00
parent 80a7f79f12
commit d18c1ca32e
3 changed files with 11 additions and 11 deletions
@@ -1,9 +1,9 @@
// ERROR: Null can not be a value of a non-null type kotlin.Iterator<kotlin.String>
// ERROR: Null can not be a value of a non-null type kotlin.Iterator<kotlin.String>
// ERROR: Return type of 'iterator' is not a subtype of the return type of the overridden member 'public abstract fun iterator(): kotlin.Iterator<kotlin.String> defined in kotlin.Iterable'
// ERROR: Return type of 'iterator' is not a subtype of the return type of the overridden member 'public abstract fun iterator(): kotlin.Iterator<kotlin.String> defined in kotlin.Iterable'
package demo
class Test : Iterable<String> {
override fun iterator(): Iterator<String> {
override fun iterator(): Iterator<String>? {
return null
}
@@ -14,7 +14,7 @@ class Test : Iterable<String> {
}
class FullTest : Iterable<String> {
override fun iterator(): Iterator<String> {
override fun iterator(): Iterator<String>? {
return null
}
@@ -1,11 +1,11 @@
// ERROR: Null can not be a value of a non-null type kotlin.Iterator<kotlin.String>
// ERROR: Null can not be a value of a non-null type kotlin.Iterator<kotlin.String>
// ERROR: Return type of 'iterator' is not a subtype of the return type of the overridden member 'public abstract fun iterator(): kotlin.Iterator<kotlin.String> defined in kotlin.Iterable'
// ERROR: Return type of 'iterator' is not a subtype of the return type of the overridden member 'public abstract fun iterator(): kotlin.Iterator<kotlin.String> defined in kotlin.Iterable'
package demo
import java.util.*
class Test : Iterable<String> {
override fun iterator(): Iterator<String> {
override fun iterator(): Iterator<String>? {
return null
}
@@ -16,7 +16,7 @@ class Test : Iterable<String> {
}
class FullTest : Iterable<String> {
override fun iterator(): Iterator<String> {
override fun iterator(): Iterator<String>? {
return null
}
@@ -1,8 +1,8 @@
// ERROR: Null can not be a value of a non-null type kotlin.Iterator<kotlin.String>
// ERROR: Return type of 'iterator' is not a subtype of the return type of the overridden member 'public abstract fun iterator(): kotlin.Iterator<kotlin.String> defined in kotlin.Iterable'
package demo
class Test : Iterable<String> {
override fun iterator(): Iterator<String> {
override fun iterator(): Iterator<String>? {
return null
}
@@ -10,4 +10,4 @@ class Test : Iterable<String> {
val j = i
return j
}
}
}