summaryrefslogtreecommitdiff
path: root/sources/scalac/ast/Tree.java.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/ast/Tree.java.tmpl')
-rw-r--r--sources/scalac/ast/Tree.java.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/ast/Tree.java.tmpl b/sources/scalac/ast/Tree.java.tmpl
index bbc034cf8c..5f5277b8af 100644
--- a/sources/scalac/ast/Tree.java.tmpl
+++ b/sources/scalac/ast/Tree.java.tmpl
@@ -61,10 +61,10 @@ public class Tree {
/** Get the type of the node. */
public final Type getType() {
- return type();
+ return type;
}
- /** Get the type of the node. */
+ /** Get the type of the node, which must be non-null. */
public Type type() {
assert type != null : Debug.show(this);
return type;