typecheck: reject duplicate function names

This commit is contained in:
Hermes Agent
2026-09-17 02:17:31 +00:00
parent eda28f1699
commit b59945b14f
6 changed files with 16 additions and 2 deletions
+3
View File
@@ -31,6 +31,9 @@ EXPECTED = {
"tests/typecheck_duplicate_class_bad.claro": [
"tests/typecheck_duplicate_class_bad.claro:5: Class Player is declared more than once. Give each class a different name.",
],
"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_duplicate_object_bad.claro": [
"tests/typecheck_duplicate_object_bad.claro:6: Object player is created more than once. Give each object a different name.",
],