FIR IDE: Add ability in test infra to have a "before" file different in

FIR vs FE1.0, and made file naming convention more consistent.
This commit is contained in:
Mark Punzalan
2021-05-01 05:32:05 +00:00
committed by Ilya Kirillov
parent efa3bf9c69
commit 9e01a608b2
6 changed files with 14 additions and 3 deletions
@@ -0,0 +1,8 @@
// "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?.length ?: <caret>
}