summaryrefslogtreecommitdiff
path: root/compiler/aslanalyze.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/aslanalyze.c')
-rw-r--r--compiler/aslanalyze.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/aslanalyze.c b/compiler/aslanalyze.c
index eaefd3fdf7f9..19440c875c3b 100644
--- a/compiler/aslanalyze.c
+++ b/compiler/aslanalyze.c
@@ -1157,6 +1157,12 @@ AnMethodAnalysisWalkEnd (
case PARSEOP_RETURN:
/*
+ * If the parent is a predefined method name, attempt to typecheck
+ * the return value. Only static types can be validated.
+ */
+ ApCheckPredefinedReturnValue (Op, MethodInfo);
+
+ /*
* The parent block does not "exit" and continue execution -- the
* method is terminated here with the Return() statement.
*/