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

require else in match statements

This commit is contained in:
Alexander Medvednikov
2019-12-07 16:58:43 +03:00
parent a594e009f2
commit 2fb7fba856
11 changed files with 69 additions and 34 deletions

View File

@@ -301,8 +301,9 @@ fn os_name_to_ifdef(name string) string {
'js' {return '_VJS' }
'solaris'{ return '__sun' }
'haiku' { return '__haiku__' }
else { verror('bad os ifdef name "$name"') }
}
verror('bad os ifdef name "$name"')
//verror('bad os ifdef name "$name"')
return ''
}