mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
solaris: make 'v test-compiler' pass (stage 2)
This commit is contained in:
@@ -14,7 +14,7 @@ struct Option2<T> {
|
||||
|
||||
|
||||
struct Option {
|
||||
data [300]byte
|
||||
data [400]byte
|
||||
error string
|
||||
ecode int
|
||||
ok bool
|
||||
@@ -23,8 +23,8 @@ struct Option {
|
||||
|
||||
// `fn foo() ?Foo { return foo }` => `fn foo() ?Foo { return opt_ok(foo); }`
|
||||
fn opt_ok(data voidptr, size int) Option {
|
||||
if size >= 300 {
|
||||
panic('option size too big: $size (max is 300), this is a temporary limit')
|
||||
if size >= 400 {
|
||||
panic('option size too big: $size (max is 400), this is a temporary limit')
|
||||
}
|
||||
res := Option{
|
||||
ok: true
|
||||
|
||||
Reference in New Issue
Block a user