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

ci: fix failures after c6158e4

This commit is contained in:
Delyan Angelov 2022-10-28 21:52:52 +03:00
parent c6158e4519
commit a0a055cc4c
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
3 changed files with 6 additions and 6 deletions

View File

@ -16,9 +16,9 @@ fn foo() ?string {
}
fn bar() !(string, int) {
a := foo() or { return Err{
a := foo() or { return IError(Err{
msg: 'error test'
} }
}) }
return a, 1
}

View File

@ -12,7 +12,7 @@ fn (err MyError) code() int {
}
fn foo() int|none|IError {
return MyError{}
return IError(MyError{})
}
fn test_string_optional_none() {

View File

@ -24,7 +24,7 @@ fn parse_attrs(name string, attrs []string) !([]http.Method, string) {
}
if attr.starts_with('/') {
if path != '' {
return http.MultiplePathAttributesError{}
return IError(http.MultiplePathAttributesError{})
}
path = attr
x.delete(i)
@ -33,9 +33,9 @@ fn parse_attrs(name string, attrs []string) !([]http.Method, string) {
i++
}
if x.len > 0 {
return http.UnexpectedExtraAttributeError{
return IError(http.UnexpectedExtraAttributeError{
attributes: x
}
})
}
if methods.len == 0 {
methods = [http.Method.get]