Skip to content

unknown function: cli004.sub.greetingsΒ #26828

@LukyGuyLucky

Description

@LukyGuyLucky

With the most updated build (v up) as of today,below code failed to compile.
Was I just simply missing something?
error message:

E:\Learning\vlangpack\ex\cli004>v crun .
cli004.v:6:6: error: unknown function: cli004.sub.greetings
    4 |
    5 | fn main(){
    6 |     sub.greetings()
      |         ~~~~~~~~~~~
    7 | }

project tree:cli004/cli004.v,cli004/sub/hey.v

cli004
|_cli004.v
|_sub__
           |__hey.v

cli004.v:

module main
import sub

fn main(){
	sub.greetings()
}

hey.v

module sub

pub fn greetings(){
	println('greetings from sub')
}

Note

You can use the πŸ‘ reaction to increase the issue's priority for developers.

Please note that only the πŸ‘ reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions