Fix old j2k test data to actual one

This commit is contained in:
Ilya Kirillov
2019-09-24 16:18:17 +03:00
parent 8b0aeb9a55
commit 41f7519244
5 changed files with 14 additions and 14 deletions
@@ -12,10 +12,10 @@ internal class Bar {
}
internal class Test {
fun test(barNotNull: Bar, barNullable: Bar?) {
fun test(barNotNull: Bar, barNullable: Bar) {
barNotNull.fooNotNull.execute()
barNotNull.fooNullable!!.execute()
barNullable!!.fooNotNull.execute()
barNullable.fooNotNull.execute()
barNullable.fooNullable!!.execute()
}
}
+2 -2
View File
@@ -1,4 +1,4 @@
// ERROR: None of the following functions can be called with the arguments supplied: public constructor FileInputStream(file: File!) defined in java.io.FileInputStream public constructor FileInputStream(fdObj: FileDescriptor!) defined in java.io.FileInputStream public constructor FileInputStream(name: String!) defined in java.io.FileInputStream
// ERROR: None of the following functions can be called with the arguments supplied: public constructor FileInputStream(@NotNull file: File!) defined in java.io.FileInputStream public constructor FileInputStream(@NotNull fdObj: FileDescriptor!) defined in java.io.FileInputStream public constructor FileInputStream(@NotNull name: String!) defined in java.io.FileInputStream
// ERROR: Type mismatch: inferred type is DataInputStream but InputStream! was expected
// ERROR: Assignments are not expressions, and only expressions are allowed in this context
// ERROR: Unresolved reference: close
@@ -21,4 +21,4 @@ internal object FileRead {
}
}
}
}
@@ -1,9 +1,9 @@
// ERROR: Return type of 'iterator' is not a subtype of the return type of the overridden member 'public abstract operator fun iterator(): Iterator<String> defined in kotlin.collections.Iterable'
// ERROR: Return type of 'iterator' is not a subtype of the return type of the overridden member 'public abstract operator fun iterator(): Iterator<String> defined in kotlin.collections.Iterable'
// ERROR: Null can not be a value of a non-null type Iterator<String>
// ERROR: Null can not be a value of a non-null type Iterator<String>
package demo
internal class Test : Iterable<String> {
override fun iterator(): Iterator<String>? {
override fun iterator(): Iterator<String> {
return null
}
@@ -13,7 +13,7 @@ internal class Test : Iterable<String> {
}
internal class FullTest : Iterable<String> {
override fun iterator(): Iterator<String>? {
override fun iterator(): Iterator<String> {
return null
}
@@ -1,11 +1,11 @@
// ERROR: Return type of 'iterator' is not a subtype of the return type of the overridden member 'public abstract operator fun iterator(): Iterator<String> defined in kotlin.collections.Iterable'
// ERROR: Return type of 'iterator' is not a subtype of the return type of the overridden member 'public abstract operator fun iterator(): Iterator<String> defined in kotlin.collections.Iterable'
// ERROR: Null can not be a value of a non-null type Iterator<String>
// ERROR: Null can not be a value of a non-null type Iterator<String>
package demo
import java.util.*
internal class Test : Iterable<String> {
override fun iterator(): Iterator<String>? {
override fun iterator(): Iterator<String> {
return null
}
@@ -15,7 +15,7 @@ internal class Test : Iterable<String> {
}
internal class FullTest : Iterable<String> {
override fun iterator(): Iterator<String>? {
override fun iterator(): Iterator<String> {
return null
}
@@ -1,8 +1,8 @@
// ERROR: Return type of 'iterator' is not a subtype of the return type of the overridden member 'public abstract operator fun iterator(): Iterator<String> defined in kotlin.collections.Iterable'
// ERROR: Null can not be a value of a non-null type Iterator<String>
package demo
internal class Test : Iterable<String> {
override fun iterator(): Iterator<String>? {
override fun iterator(): Iterator<String> {
return null
}