diff options
Diffstat (limited to 'src/main/javassist/expr/Cast.java')
-rw-r--r-- | src/main/javassist/expr/Cast.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/javassist/expr/Cast.java b/src/main/javassist/expr/Cast.java index 5dcbbb41..6d65af52 100644 --- a/src/main/javassist/expr/Cast.java +++ b/src/main/javassist/expr/Cast.java @@ -148,5 +148,12 @@ public class Cast extends Expr { bytecode.addIndex(index); gen.setType(retType); } + + public void setReturnType(JvstTypeChecker c, ASTList args) + throws CompileError + { + c.atMethodArgs(args, new int[1], new int[1], new String[1]); + c.setType(retType); + } } } |