compiler: fix issue #1350 - an error is produced, when a void fn returns a value

This commit is contained in:
Delyan Angelov 2019-07-29 17:35:56 +03:00 committed by Alexander Medvednikov
parent ff72d9104d
commit f1373874ef
2 changed files with 3 additions and 3 deletions

View file

@ -135,7 +135,7 @@ pub fn(graph &ModDepGraph) imports() []string {
return mods
}
pub fn(graph &ModDepGraph) last_node() {
pub fn(graph &ModDepGraph) last_node() ModDepGraphNode {
return graph.nodes[graph.nodes.len-1]
}