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:
@ -1173,8 +1173,9 @@ pub fn os_from_string(os string) OS {
|
||||
verror('use the flag `-cc msvc` to build using msvc')
|
||||
}
|
||||
'haiku' { return .haiku }
|
||||
else { panic('bad os $os') }
|
||||
}
|
||||
println('bad os $os') // todo panic?
|
||||
//println('bad os $os') // todo panic?
|
||||
return .linux
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user