Fix lack of location for reporting lambdas with missing return statement #1857.

This commit is contained in:
Christoffer Lerno
2025-01-17 11:55:56 +01:00
parent d4bd68c188
commit d72ec09cee
4 changed files with 14 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
import std::io::path;
fn void! process_dir(String dir_name)
{
path::Path p = path::temp_new(dir_name)!;
path::PathWalker fnwalk = fn bool!(Path p, bool is_dir, void*) { // #error: issing return statement at the end
io::printfn("path is %s", p);
};
}