diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2010-04-02 16:48:51 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2010-04-02 16:48:51 +0000 |
commit | b9ee7222924c1df653ed09d1b5befac3c98aa3f5 (patch) | |
tree | a128dad9042628a002a14e4ba0a4f5a98c9db600 /compiler/aslanalyze.c | |
parent | 6e5c66621e4fd1bac329fef86cb2c60491b539a9 (diff) |
Notes
Diffstat (limited to 'compiler/aslanalyze.c')
-rw-r--r-- | compiler/aslanalyze.c | 6 |
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. */ |