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

compiler: remove remaining switch statements and show a warning

This commit is contained in:
Alexander Medvednikov
2019-10-24 19:19:03 +03:00
parent 753fe32793
commit 36eb1b77d0
8 changed files with 203 additions and 143 deletions

View File

@ -270,6 +270,8 @@ fn (s mut Scanner) eat_single_newline(){
if s.text[ s.pos ] == `\r` { s.pos ++ return }
}
///////////////////////////////
const (
match_arrow_warning = '=> is no longer needed in match statements, use\n' +
'match foo {
@ -277,4 +279,6 @@ const (
2 { baz }
else { ... }
}'
//make_receiver_mutable =
)