[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !LANGUAGE: +ExpectedTypeFromCast
|
||||
// !CHECK_TYPE
|
||||
// Issue: KT-30405
|
||||
|
||||
inline fun <reified T> foo(): T {
|
||||
TODO()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val fooCall = foo() as String // T in foo should be inferred to String
|
||||
fooCall checkType { <!UNRESOLVED_REFERENCE!>_<!><String>() }
|
||||
|
||||
val safeFooCall = foo() as? String
|
||||
safeFooCall checkType { <!UNRESOLVED_REFERENCE!>_<!><String?>() }
|
||||
}
|
||||
Reference in New Issue
Block a user