diff --git a/CHANGELOG.md b/CHANGELOG.md index 669babb5cc..e463c390b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -104,7 +104,7 @@ - github: improve the voting message for issues (#19448) - vcreate: update templates, add `lib` (#19444) -### Operating System support +#### Operating System support - builtin: use `libgc-threaded` on FreeBSD, to get the threaded version of libgc (#19294) #### Examples diff --git a/v.mod b/v.mod index 648ea3f4e5..03aad123f9 100644 --- a/v.mod +++ b/v.mod @@ -1,7 +1,7 @@ Module { name: 'V' description: 'The V programming language.' - version: '0.4.1' + version: '0.4.2' license: 'MIT' repo_url: 'https://github.com/vlang/v' dependencies: [] diff --git a/vlib/semver/v.mod b/vlib/semver/v.mod index 3f9af6e722..1067295d8e 100644 --- a/vlib/semver/v.mod +++ b/vlib/semver/v.mod @@ -1,5 +1,5 @@ Module { name: 'semver' - version: '0.4.1' + version: '0.4.2' deps: [] } diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 343014abbd..f302d77b9d 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -4804,8 +4804,7 @@ fn (mut c Checker) ensure_type_exists(typ ast.Type, pos token.Pos) bool { return false } sym := c.table.sym(typ) - if !c.is_builtin_mod && sym.kind == .struct_ && !sym.is_pub && sym.language == .v - && sym.mod != c.mod { + if !c.is_builtin_mod && sym.kind == .struct_ && !sym.is_pub && sym.mod != c.mod { c.error('struct `${sym.name}` was declared as private to module `${sym.mod}`, so it can not be used inside module `${c.mod}`', pos) return false diff --git a/vlib/v/util/version/version.v b/vlib/v/util/version/version.v index b16f8f2339..c4ff3fc6d0 100644 --- a/vlib/v/util/version/version.v +++ b/vlib/v/util/version/version.v @@ -2,7 +2,7 @@ module version import os -pub const v_version = '0.4.1' +pub const v_version = '0.4.2' // vhash() returns the build string C.V_COMMIT_HASH . See cmd/tools/gen_vc.v . pub fn vhash() string {