mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
scanner: no longer allow 1. float literals (#11301)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const n = 1000
|
||||
|
||||
fn f(ch chan f64) {
|
||||
mut s := 0.
|
||||
mut s := 0.0
|
||||
for _ in 0 .. n {
|
||||
s += <-ch
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user