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:
@@ -16,9 +16,9 @@ fn foo() ?string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn bar() !(string, int) {
|
fn bar() !(string, int) {
|
||||||
a := foo() or { return Err{
|
a := foo() or { return IError(Err{
|
||||||
msg: 'error test'
|
msg: 'error test'
|
||||||
} }
|
}) }
|
||||||
return a, 1
|
return a, 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@ fn (err MyError) code() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn foo() int|none|IError {
|
fn foo() int|none|IError {
|
||||||
return MyError{}
|
return IError(MyError{})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_string_optional_none() {
|
fn test_string_optional_none() {
|
||||||
|
@@ -24,7 +24,7 @@ fn parse_attrs(name string, attrs []string) !([]http.Method, string) {
|
|||||||
}
|
}
|
||||||
if attr.starts_with('/') {
|
if attr.starts_with('/') {
|
||||||
if path != '' {
|
if path != '' {
|
||||||
return http.MultiplePathAttributesError{}
|
return IError(http.MultiplePathAttributesError{})
|
||||||
}
|
}
|
||||||
path = attr
|
path = attr
|
||||||
x.delete(i)
|
x.delete(i)
|
||||||
@@ -33,9 +33,9 @@ fn parse_attrs(name string, attrs []string) !([]http.Method, string) {
|
|||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
if x.len > 0 {
|
if x.len > 0 {
|
||||||
return http.UnexpectedExtraAttributeError{
|
return IError(http.UnexpectedExtraAttributeError{
|
||||||
attributes: x
|
attributes: x
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
if methods.len == 0 {
|
if methods.len == 0 {
|
||||||
methods = [http.Method.get]
|
methods = [http.Method.get]
|
||||||
|
Reference in New Issue
Block a user