summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scalac/symtab/Type.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/scalac/symtab/Type.java b/sources/scalac/symtab/Type.java
index c2b88fdf70..9802005bd8 100644
--- a/sources/scalac/symtab/Type.java
+++ b/sources/scalac/symtab/Type.java
@@ -1198,6 +1198,14 @@ public class Type implements Modifiers, Kinds, TypeTags, EntryTags {
return sym.type().asSeenFrom(this, sym.owner());
}
+ /** The stabilized type of `sym', seen as a member of this type.
+ */
+ public Type memberStabilizedType(Symbol sym) {
+ return sym.isStable() && this.isStable()
+ ? Type.singleTypeMethod(this, sym)
+ : this.memberType(sym);
+ }
+
/** The low bound of `sym', seen as a member of this type.
*/
public Type memberLoBound(Symbol sym) {