Skip to content

Commit

Permalink
typers: dubious line in adaptType
Browse files Browse the repository at this point in the history
  • Loading branch information
xeno-by committed Jun 8, 2012
1 parent f0683d8 commit d81d392
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compiler/scala/tools/nsc/typechecker/Typers.scala
Expand Up @@ -905,6 +905,10 @@ trait Typers extends Modes with Adaptations with Taggings {

def adaptType(): Tree = {
if (inFunMode(mode)) {
// [Eugene++] the commented line below makes sense for typechecking, say, TypeApply(Ident(`some abstract type symbol`), List(...))
// because otherwise Ident will have its tpe set to a TypeRef, not to a PolyType, and `typedTypeApply` will fail
// but this needs additional investigation, because it crashes t5228, gadts1 and maybe something else
// tree setType tree.tpe.normalize
tree
} else if (tree.hasSymbol && !tree.symbol.typeParams.isEmpty && !inHKMode(mode) &&
!(tree.symbol.isJavaDefined && context.unit.isJava)) { // (7)
Expand Down

0 comments on commit d81d392

Please sign in to comment.