[NI] Fix substitution of NotNullTypeParameter
This commit is contained in:
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// FILE: JClass.java
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class JClass {
|
||||
@NotNull
|
||||
public static <T> T getNotNullT() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
fun <T : Any> test() {
|
||||
var value: T? = null
|
||||
if (value == null) {
|
||||
value = JClass.getNotNullT()
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_SMARTCAST!>value<!>.hashCode() // unsafe call error
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
package
|
||||
|
||||
public fun </*0*/ T : kotlin.Any> test(): kotlin.Unit
|
||||
|
||||
public open class JClass {
|
||||
public constructor JClass()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
@org.jetbrains.annotations.NotNull public open fun </*0*/ T : kotlin.Any!> getNotNullT(): T
|
||||
}
|
||||
Reference in New Issue
Block a user