diff options
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/ast/Tree.java.tmpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/scalac/ast/Tree.java.tmpl b/sources/scalac/ast/Tree.java.tmpl index dc5c93ed91..bbc034cf8c 100644 --- a/sources/scalac/ast/Tree.java.tmpl +++ b/sources/scalac/ast/Tree.java.tmpl @@ -60,7 +60,12 @@ public class Tree { // Public Methods - tree type /** Get the type of the node. */ - public Type getType() { + public final Type getType() { + return type(); + } + + /** Get the type of the node. */ + public Type type() { assert type != null : Debug.show(this); return type; } |