1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tutorials: vweb: add an article

This commit is contained in:
Alexander Medvednikov
2019-12-15 00:55:05 +03:00
parent fc33f9d49c
commit 48ea136a9a
5 changed files with 106 additions and 1 deletions

View File

@ -633,7 +633,7 @@ fn (p mut Parser) check_unused_and_mut_vars() {
}
if !var.is_changed && var.is_mut && !p.pref.is_repl &&
!p.pref.translated && var.typ != 'T*' &&
p.mod != 'ui'
p.mod != 'ui' && var.typ != 'App*'
{
p.error_with_token_index('`$var.name` is declared as mutable, but it was never changed', var.token_idx )
}