vlang / ui

A cross-platform UI library written in V
MIT License
2.32k stars 154 forks source link

Nil fixes from a few days ago gone too far/not tested? #467

Open kpeters58 opened 2 years ago

kpeters58 commented 2 years ago

V version: V 0.3.0 70890b2 UI version: Current? OS: Windows 10

What did you do?

D:\projects\v>v up
Updating V...
V self compiling ...
V built successfully as executable "v.exe".
Current V version: V 0.3.0 70890b2, timestamp: 2022-07-08 15:40:57 +0300

D:\projects\v>v run flightbooker.v
C:/Users/kpeters/.vmodules/ui/src/widget_textbox.v:12:2: error: unexpected keyword `nil`, expecting name
   10 |
   11 | enum SelectionDirection {
   12 |     nil = 0
   13 |     left_to_right
   14 |     right_to_left

D:\projects\v>

What did you expect to see?

A successful build

What did you see instead?

Above error