File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1080,6 +1080,13 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
1080
1080
(if (isVarPattern(arg)) desugar.patternVar(arg) else arg, tparam.paramBounds)
1081
1081
else
1082
1082
(arg, WildcardType )
1083
+ if (tpt1.symbol.isClass)
1084
+ tparam match {
1085
+ case tparam : Symbol =>
1086
+ // This is needed to get the test `compileParSetSubset` to work
1087
+ tparam.ensureCompleted()
1088
+ case _ =>
1089
+ }
1083
1090
typed(desugaredArg, argPt)
1084
1091
}
1085
1092
args.zipWithConserve(tparams)(typedArg(_, _)).asInstanceOf [List [Tree ]]
Original file line number Diff line number Diff line change @@ -225,6 +225,10 @@ class tests extends CompilerTest {
225
225
|../scala-scala/src/library/scala/collection/generic/GenSeqFactory.scala""" .stripMargin)
226
226
@ Test def compileIndexedSeq = compileLine(" ../scala-scala/src/library/scala/collection/immutable/IndexedSeq.scala" )
227
227
@ Test def compileParSetLike = compileLine(" ../scala-scala/src/library/scala/collection/parallel/mutable/ParSetLike.scala" )
228
+ @ Test def compileParSetSubset = compileLine(
229
+ """ ../scala-scala/src/library/scala/collection/parallel/mutable/ParSetLike.scala
230
+ |../scala-scala/src/library/scala/collection/parallel/mutable/ParSet.scala
231
+ |../scala-scala/src/library/scala/collection/mutable/SetLike.scala""" .stripMargin)(scala2mode ++ defaultOptions)
228
232
229
233
@ Test def dotty = {
230
234
dottyBootedLib
You can’t perform that action at this time.
0 commit comments