FIR IDE: Use KtFirExpressionTypeProvider.getExpectedType() in

ReplaceCallFix.
This commit is contained in:
Mark Punzalan
2021-03-19 00:01:54 +00:00
committed by Ilya Kirillov
parent e9298d1d71
commit 062adf21de
18 changed files with 118 additions and 25 deletions
@@ -0,0 +1,9 @@
// "Replace with safe (?.) call" "true"
// WITH_RUNTIME
// ERROR: Type mismatch: inferred type is Int? but Int was expected
// Note: There should be no error in FIR but errors are not currently checked for FIR
class T {
fun foo(s: String?): Int = s<caret>.length
}
/* FIR_COMPARISON */