parser: fail when assigning to _ with :=

This commit is contained in:
Enzo Baldisserri 2020-06-08 00:47:04 +02:00 committed by GitHub
parent 36edd6295f
commit 11b7b97311
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 137 additions and 111 deletions

View file

@ -27,7 +27,7 @@ pub fn (mut app App) json_endpoint() {
pub fn (mut app App) index() {
app.cnt++
show:= true
show := true
//app.vweb.text('Hello world from vweb')
hello := 'Hello world from vweb'
numbers := [1,2,3]