Improve error message when using functions as values #2856

This commit is contained in:
Christoffer Lerno
2026-02-05 16:03:56 +01:00
parent 054fcd2deb
commit 016254d38c
7 changed files with 41 additions and 31 deletions

View File

@@ -65,7 +65,8 @@ void compiler_init(BuildOptions *build_options)
INFO_LOG("Version: %s", COMPILER_VERSION);
compiler.context = (GlobalContext) { .in_panic_mode = false };
GlobalContext new_context = { .in_panic_mode = false };
compiler.context = new_context;
// Skip library detection.
//compiler.lib_dir = find_lib_dir();
//DEBUG_LOG("Found std library: %s", compiler.lib_dir);