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

checker: check nested struct field with required attr (fix #10913) (#17277)

This commit is contained in:
yuyi
2023-02-11 17:22:31 +08:00
committed by GitHub
parent 03be525c82
commit 90591eb813
10 changed files with 63 additions and 12 deletions

View File

@@ -71,7 +71,7 @@ fn todo_del() {}
[typedef]
struct C.XSelectionRequestEvent {
mut:
display &C.Display // Display the event was read from
display &C.Display = unsafe { nil } // Display the event was read from
owner Window
requestor Window
selection Atom
@@ -84,7 +84,7 @@ mut:
struct C.XSelectionEvent {
mut:
@type int
display &C.Display // Display the event was read from
display &C.Display = unsafe { nil } // Display the event was read from
requestor Window
selection Atom
target Atom