mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
compiler: remove remaining switch statements and show a warning
This commit is contained in:
parent
753fe32793
commit
36eb1b77d0
8 changed files with 203 additions and 143 deletions
|
@ -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 =
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue