test: cover compatibility missing return types

This commit is contained in:
Hermes Agent
2026-09-18 13:20:00 +00:00
parent df3c57415d
commit e17f450603
6 changed files with 16 additions and 2 deletions
+3
View File
@@ -314,6 +314,9 @@ EXPECTED = {
"tests/typecheck_missing_return_type_bad.claro": [
"tests/typecheck_missing_return_type_bad.claro:1: Function greet needs a return type after RETURNS. Add a type such as NUMBER.",
],
"tests/typecheck_function_compat_missing_return_type_bad.claro": [
"tests/typecheck_function_compat_missing_return_type_bad.claro:1: Function greet needs a return type after RETURNS. Add a type such as NUMBER.",
],
"tests/typecheck_method_missing_return_type_bad.claro": [
"tests/typecheck_method_missing_return_type_bad.claro:2: Method Player.score needs a return type after RETURNS. Add a type such as NUMBER.",
],