diff options
author | Martin Odersky <odersky@gmail.com> | 2003-07-09 12:33:50 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-07-09 12:33:50 +0000 |
commit | b5f8932a9bf6314f12d11aa9cd96b3c6bfaed035 (patch) | |
tree | 25316166894b0a4b6dc5ee9f02cfa867f7879984 /sources/scalac/ast/parser/Parser.java | |
parent | c3a8d9f14385b2c1f03c3bd3d563427af3d2278b (diff) | |
download | scala-b5f8932a9bf6314f12d11aa9cd96b3c6bfaed035.tar.gz scala-b5f8932a9bf6314f12d11aa9cd96b3c6bfaed035.tar.bz2 scala-b5f8932a9bf6314f12d11aa9cd96b3c6bfaed035.zip |
*** empty log message ***
Diffstat (limited to 'sources/scalac/ast/parser/Parser.java')
-rw-r--r-- | sources/scalac/ast/parser/Parser.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sources/scalac/ast/parser/Parser.java b/sources/scalac/ast/parser/Parser.java index 51abeb52cf..87c8989f33 100644 --- a/sources/scalac/ast/parser/Parser.java +++ b/sources/scalac/ast/parser/Parser.java @@ -1603,10 +1603,12 @@ public class Parser implements Tokens { if (s.token == EQUALS || restype == Tree.Empty) { accept(EQUALS); return make.DefDef( - pos, mods, name, tparams, vparams, restype, constrExpr()); + pos, mods | Modifiers.FINAL, name, + tparams, vparams, restype, constrExpr()); } else - return make.DefDef(pos, mods | Modifiers.DEFERRED, name, - tparams, vparams, restype, Tree.Empty); + return make.DefDef( + pos, mods | Modifiers.FINAL | Modifiers.DEFERRED, name, + tparams, vparams, restype, Tree.Empty); } /** TypeDef ::= Id `=' Type |