Fix old j2k test data to actual one
This commit is contained in:
@@ -12,10 +12,10 @@ internal class Bar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal class Test {
|
internal class Test {
|
||||||
fun test(barNotNull: Bar, barNullable: Bar?) {
|
fun test(barNotNull: Bar, barNullable: Bar) {
|
||||||
barNotNull.fooNotNull.execute()
|
barNotNull.fooNotNull.execute()
|
||||||
barNotNull.fooNullable!!.execute()
|
barNotNull.fooNullable!!.execute()
|
||||||
barNullable!!.fooNotNull.execute()
|
barNullable.fooNotNull.execute()
|
||||||
barNullable.fooNullable!!.execute()
|
barNullable.fooNullable!!.execute()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+2
-2
@@ -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: Type mismatch: inferred type is DataInputStream but InputStream! was expected
|
||||||
// ERROR: Assignments are not expressions, and only expressions are allowed in this context
|
// ERROR: Assignments are not expressions, and only expressions are allowed in this context
|
||||||
// ERROR: Unresolved reference: close
|
// 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: Null can not be a value of a non-null type Iterator<String>
|
||||||
// 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
|
package demo
|
||||||
|
|
||||||
internal class Test : Iterable<String> {
|
internal class Test : Iterable<String> {
|
||||||
override fun iterator(): Iterator<String>? {
|
override fun iterator(): Iterator<String> {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ internal class Test : Iterable<String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal class FullTest : Iterable<String> {
|
internal class FullTest : Iterable<String> {
|
||||||
override fun iterator(): Iterator<String>? {
|
override fun iterator(): Iterator<String> {
|
||||||
return null
|
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: Null can not be a value of a non-null type Iterator<String>
|
||||||
// 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
|
package demo
|
||||||
|
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
internal class Test : Iterable<String> {
|
internal class Test : Iterable<String> {
|
||||||
override fun iterator(): Iterator<String>? {
|
override fun iterator(): Iterator<String> {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ internal class Test : Iterable<String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal class FullTest : Iterable<String> {
|
internal class FullTest : Iterable<String> {
|
||||||
override fun iterator(): Iterator<String>? {
|
override fun iterator(): Iterator<String> {
|
||||||
return null
|
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
|
package demo
|
||||||
|
|
||||||
internal class Test : Iterable<String> {
|
internal class Test : Iterable<String> {
|
||||||
override fun iterator(): Iterator<String>? {
|
override fun iterator(): Iterator<String> {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user