You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a module is two levels deep, its pub const and pub enum values are not seen when this module is included.
Reproduction Steps
mkdir -p foo/bar
cat > foo/bar/bar.v <<EOF
module bar
pub const xyz = 12
EOF
cat > main.v <<EOF
import foo.bar
fn main() {
println(bar.xyz)
}
EOF
v run main.v
### Expected Behavior
It should print 12
### Current Behavior
On FreeBSD the compilation fails with
error: undefined ident: foo.bar.xyz
It works fine on Ubuntu
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### V version
V 0.4.2 b3d1b04
### Environment details (OS name and version, etc.)
FreeBSD-14.0-STABLE
> [!NOTE]
> You can vote for this issue using the 👍 reaction. More votes increase the issue's priority for developers.
>
> Take into account that only the 👍 reaction counts as a vote.
> Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered:
bakul
added
the
Bug
This tag is applied to issues which reports bugs.
label
Oct 20, 2023
Describe the bug
When a module is two levels deep, its pub const and pub enum values are not seen when this module is included.
Reproduction Steps
error: undefined ident:
foo.bar.xyz
The text was updated successfully, but these errors were encountered: