Permalink
Browse files

SI-6979 Small optimization in lub

If a member of `lubBase` is final, it cannot be
refined in the types we're lubbing.
  • Loading branch information...
1 parent ef332d2 commit decc9a9f0399d7613017db747732d251fe129236 @retronym retronym committed Jan 16, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/reflect/scala/reflect/internal/Types.scala
@@ -6437,6 +6437,7 @@ trait Types extends api.Types { self: SymbolTable =>
|| sym.isConstructor
|| !sym.isPublic
|| isGetClass(sym)
+ || sym.isFinal
|| narrowts.exists(t => !refines(t, sym))
)
def lubsym(proto: Symbol): Symbol = {

0 comments on commit decc9a9

Please sign in to comment.