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

checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752)

This commit is contained in:
shove
2022-09-15 12:59:31 +08:00
committed by GitHub
parent 5719344653
commit 8b962f8446
111 changed files with 288 additions and 223 deletions

View File

@@ -87,7 +87,7 @@ pub fn (err UnknownTokenError) msg() string {
struct Parser {
mut:
scanner &Scanner
scanner &Scanner = unsafe { nil }
p_tok Token
tok Token
n_tok Token

View File

@@ -18,8 +18,8 @@ import math
pub struct BitMap {
pub mut:
tf &TTF_File
buf &u8 = unsafe { 0 } // pointer to the memory buffer
tf &TTF_File = unsafe { nil }
buf &u8 = unsafe { nil } // pointer to the memory buffer
buf_size int // allocated buf size in bytes
width int = 1 // width of the buffer
height int = 1 // height of the buffer

View File

@@ -19,7 +19,7 @@ import sokol.gfx
pub struct TTF_render_Sokol {
pub mut:
bmp &BitMap // Base bitmap render
bmp &BitMap = unsafe { nil } // Base bitmap render
// rendering fields
sg_img gfx.Image // sokol image
scale_reduct f32 = 2.0 // scale of the cpu texture for filtering