Skip to content

Commit

Permalink
Remove redundant tests
Browse files Browse the repository at this point in the history
isHK already does a dealias.
  • Loading branch information
odersky committed Oct 24, 2015
1 parent 4f15c10 commit 538764f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dotty/tools/dotc/typer/Checking.scala
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,7 @@ trait Checking {
if (tpt.tpe.isHK && !ctx.compilationUnit.isJava) {
// be more lenient with missing type params in Java,
// needed to make pos/java-interop/t1196 work.
val alias = tpt.tpe.dealias
if (alias.isHK) errorTree(tpt, d"missing type parameter for ${tpt.tpe}")
else tpt.withType(alias)
errorTree(tpt, d"missing type parameter for ${tpt.tpe}")
}
else tpt
}
Expand Down

0 comments on commit 538764f

Please sign in to comment.