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:
parent
c6158e4519
commit
a0a055cc4c
@ -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
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@ fn (err MyError) code() int {
|
||||
}
|
||||
|
||||
fn foo() int|none|IError {
|
||||
return MyError{}
|
||||
return IError(MyError{})
|
||||
}
|
||||
|
||||
fn test_string_optional_none() {
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user