Felipe Pena

Results 69 issues of Felipe Pena

Fix #17386 Fix #17484 ```V import json pub struct MyStruct { pub mut: valuea int } pub struct MyStruct2 { pub mut: valuea int valueb ?MyStruct } println(json.encode(MyStruct2{valuea:1})) ```

Bug
Option Fields

Fix #17441 ```V name := 100 _ = name or { 100 } ```

## Host API ### create() Eval Returns an Eval instance ### Eval.add_file(filepath string) Adds a user file to be processed with the .run() code ### Eval.push_val(val Object) Pushes a value...

Fix #17445 ``` felipe@~/github/v (master)$ v run bug.v bug.v:2:2: warning: WARN 1 | fn main() { 2 | $compile_warn('WARN') | ~~~~~~~~~~~~~~~~~~~~~ 3 | } felipe@~/github/v (master)$ v fmt bug.v fn...

Fix #17466 Add missing or-block expected type as using `or { f.field }`, `or { f.call() }`.

Fix #17465 ```V fn tuple() ?(int, int) { return 1, 2 } fn tuple2() ?(string, int) { return '', 2 } fn tuple3() ?(?int, ?int) { return none, none }...

Fix #16354 ```V fn accept_only_u8_references(x &u8) { println(ptr_str(x)) } fn main() { a := [1, 2, 3] accept_only_u8_references(&a) } ```

Need rebase