@@ -55,7 +55,7 @@ trait TypeOps { this: Context =>
55
55
}
56
56
}
57
57
58
- class AsSeenFromMap (pre : Type , clazz : Symbol ) extends TypeMap {
58
+ final class AsSeenFromMap (pre : Type , clazz : Symbol ) extends TypeMap {
59
59
def apply (tp : Type ) = asSeenFrom(tp, pre, clazz, this )
60
60
}
61
61
@@ -133,7 +133,7 @@ trait TypeOps { this: Context =>
133
133
final def glb (tps : List [Type ]): Type =
134
134
(defn.AnyType /: tps)(glb)
135
135
136
- def lub (tp1 : Type , tp2 : Type ): Type =
136
+ final def lub (tp1 : Type , tp2 : Type ): Type =
137
137
if (tp1 eq tp2) tp1
138
138
else if (tp1.isWrong) tp1
139
139
else if (tp2.isWrong) tp2
@@ -194,7 +194,7 @@ trait TypeOps { this: Context =>
194
194
* to a list of typerefs, by converting all refinements to member
195
195
* definitions in scope `decls`.
196
196
*/
197
- def normalizeToRefs (parents : List [Type ], cls : ClassSymbol , decls : Scope ): List [TypeRef ] = {
197
+ final def normalizeToRefs (parents : List [Type ], cls : ClassSymbol , decls : Scope ): List [TypeRef ] = {
198
198
var refinements = Map [TypeName , Type ]()
199
199
var formals = Map [TypeName , Symbol ]()
200
200
def normalizeToRef (tp : Type ): TypeRef = tp match {
0 commit comments