yuyi

Results 36 comments of yuyi

It is still failed when execute `v self` again, the problem maybe in `sym.info.fields`.

If we want to use smartcast, we must use `match mut st.stmt {` because st is mut. ```v module main type Stmt = StmtSt1 | StmtSt2 struct StmtSt1 { num...

V 0.2.2 ce3e71c Win10 ```vlang struct Struct { f fn () [12]int } fn main() { s := Struct{} println(s) } PS D:\Test\v\tt1> v run . Struct{ f: fn ()...

```v enum Color { red green blue } fn color_code(c Color) int { return match c { .red { 10 } .green { 20 } .blue { 30 } }...

I thinks it can work without `_type`, we can handle this by matching variants.

It's ok. ![image](https://user-images.githubusercontent.com/6949593/134503669-59030b39-d28c-4b0d-95c7-c14d880c1fc6.png)

@ylluminate Sorry, I haven't studied that, I'll try.

@ylluminate It can work. we must set chinese font path in ui.window(), just like: ```vlang window := ui.window({ width: win_width height: win_height state: app title: 'V UI Demo' font_path: os.resource_abs_path(os.join_path('assets/fonts/',...

I just tested it, It's ok. Please get the latest version of v and ui.