summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/symtab/Symbol.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java
index 5bfec83e7f..95aa72803f 100644
--- a/sources/scalac/symtab/Symbol.java
+++ b/sources/scalac/symtab/Symbol.java
@@ -615,6 +615,11 @@ public abstract class Symbol implements Modifiers, Kinds {
return this == c || c.kind == Kinds.ERROR || closurePos(c) >= 0;
}
+ /** Get base types of this symbol */
+ public Type[] parents() {
+ return type().parents();
+ }
+
// ToString -------------------------------------------------------------------
/** String representation of symbol's simple name.