mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
scanner: make the 1. float error a warning for now
This commit is contained in:
@@ -438,7 +438,7 @@ fn (mut s Scanner) ident_dec_number() string {
|
||||
s.pos--
|
||||
} else {
|
||||
// 5.
|
||||
s.error('float literals should have a digit after the decimal point, e.g. `5.0`')
|
||||
s.warn('float literals should have a digit after the decimal point, e.g. `5.0`')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
vlib/v/scanner/tests/float_literals_dot_err.vv:2:9: error: float literals should have a digit after the decimal point, e.g. `5.0`
|
||||
vlib/v/scanner/tests/float_literals_dot_err.vv:2:9: warning: float literals should have a digit after the decimal point, e.g. `5.0`
|
||||
1 | fn main() {
|
||||
2 | a := 1.
|
||||
| ^
|
||||
|
||||
Reference in New Issue
Block a user