1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: implement interface fields (#8259)

This commit is contained in:
spaceface
2021-01-23 07:57:17 +01:00
committed by GitHub
parent 3628751199
commit c2d501e8a9
12 changed files with 317 additions and 103 deletions

View File

@@ -19,7 +19,7 @@
+ IO streams
+ struct embedding
- interface embedding
- interfaces: allow struct fields (not just methods)
+ interfaces: allow struct fields (not just methods)
- vfmt: fix common errors automatically to save time (make vars mutable and vice versa, add missing imports etc)
- method expressions with an explicit receiver as the first argument: `fn handle(f OnClickFn) { f() } button := Button{} handle(btn.click)`
+ short generics syntax (`foo(5)` instead of `foo<int>(5)`)