typecheck: diagnose missing function names

This commit is contained in:
Hermes Agent
2026-09-17 04:21:38 +00:00
parent b59945b14f
commit 649b327f52
7 changed files with 15 additions and 3 deletions
+3
View File
@@ -34,6 +34,9 @@ EXPECTED = {
"tests/typecheck_duplicate_function_bad.claro": [
"tests/typecheck_duplicate_function_bad.claro:5: Function greet is declared more than once. Give each function a different name.",
],
"tests/typecheck_missing_function_name_bad.claro": [
"tests/typecheck_missing_function_name_bad.claro:1: TEACH needs a function name. Add a name after TEACH, such as TEACH greet.",
],
"tests/typecheck_duplicate_object_bad.claro": [
"tests/typecheck_duplicate_object_bad.claro:6: Object player is created more than once. Give each object a different name.",
],