Skip to content

Commit

Permalink
make alias compress.szip.Zip public
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 21, 2025
1 parent 7e30110 commit e564485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/compress/szip/szip.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub:
pub struct C.zip_t {
}

type Zip = C.zip_t
pub type Zip = C.zip_t

pub type Fn_on_extract_entry = fn (&&char, &&char) int

Expand Down
1 change: 1 addition & 0 deletions vlib/v/checker/checker.v
Original file line number Diff line number Diff line change
Expand Up @@ -5295,6 +5295,7 @@ fn (mut c Checker) ensure_type_exists(typ ast.Type, pos token.Pos) bool {
sym := c.table.sym(typ)
if !c.is_builtin_mod && sym.kind in [.struct, .alias] && !sym.is_pub && sym.mod != c.mod
&& c.comptime.comptime_for_field_var == '' && !c.inside_recheck {
println('>>> ${sym.mod} ${c.mod}')
c.error('${sym.kind} `${sym.name}` was declared as private to module `${sym.mod}`, so it can not be used inside module `${c.mod}`',
pos)
return false
Expand Down

0 comments on commit e564485

Please sign in to comment.