[FIR] Add illegal underscore check in BaseFirBuilder

This commit is contained in:
Ivan Kylchik
2020-07-02 16:33:46 +03:00
parent cc4b50fdc1
commit 92a51b9794
15 changed files with 96 additions and 109 deletions
@@ -1,17 +0,0 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION
fun foo() {
1_
0x_f
0X_f
0b_1
0B_1
1.0_
1_.1
1.0_e1
1.0E_1
0Xe_
1.1_e-1_23
1.0e+_0
1.0e-_0
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_EXPRESSION
fun foo() {
@@ -3,7 +3,7 @@
fun foo() {
100_1
3_.1
<!ILLEGAL_UNDERSCORE!>3_.1<!>
2___4
123_
<!ILLEGAL_UNDERSCORE!>123_<!>
}