[Spec tests] Updating tests for kotlin 1.4.0
This commit is contained in:
committed by
Victor Petukhov
parent
ab3b63c92a
commit
1caafdc9d4
Vendored
+1
-1
@@ -1 +1 @@
|
||||
java.lang.IllegalStateException: TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH: Type inference failed. Expected type mismatch: inferred type is Test<Nothing?> but Base<T> was expected (7,38) in /KotlinClass.kt
|
||||
java.lang.IllegalStateException: TYPE_MISMATCH: Type mismatch: inferred type is Test<Nothing?> but Base<T> was expected (7,38) in /KotlinClass.kt
|
||||
|
||||
@@ -24,7 +24,7 @@ public class Test<T> extends Base<T> {
|
||||
|
||||
open class Base<out T>(val prop: T)
|
||||
|
||||
class Inheritor <T : Any> {
|
||||
class Inheritor<T : Any> {
|
||||
companion object {
|
||||
fun <T> default(): Base<T> = Test(null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user