forked from vlang/v
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v.builder: fix compiling code, that imports modules from both `src/mo…
…dules` and `modules` (vlang#19437)
- Loading branch information
1 parent
aa540db
commit 9be600f
Showing
4 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
vlib/v/tests/testdata/modules_in_src/modules/somemoduletwo/somemoduletwo.v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module somemoduletwo | ||
|
||
const name = 'somemoduletwo' | ||
|
||
pub fn name() string { | ||
return somemoduletwo.name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
module main | ||
|
||
import somemodule | ||
import somemoduletwo | ||
|
||
fn main() { | ||
println(somemodule.name()) | ||
println('${somemodule.name()} ${somemoduletwo.name()}') | ||
} |