Skip to content

Commit

Permalink
Fix #376 by checking if names are abstract when translating
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindberg committed Nov 9, 2021
1 parent a207ce5 commit dea25db
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ class ImportType(stdNames: QualifiedName.StdNames) {
lazy val targs2 = targs.map(apply(scope, importName))

Mappings.get(other) match {
case Some(m: RefMapping) => m.pick(isInheritance).withComments(cs)
case Some(m: NameMapping) => TypeRef(m.pick(isInheritance), targs2, cs)
case None =>
case Some(m: RefMapping) if !scope.isAbstract(base) => m.pick(isInheritance).withComments(cs)
case Some(m: NameMapping) if !scope.isAbstract(base) => TypeRef(m.pick(isInheritance), targs2, cs)
case _ =>
try TypeRef(importName(other), targs2, cs)
catch {
case x: NoSuchElementException =>
Expand Down

0 comments on commit dea25db

Please sign in to comment.