We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bff3ba commit 19d35ffCopy full SHA for 19d35ff
compiler/src/dotty/tools/dotc/ast/tpd.scala
@@ -285,7 +285,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
285
if (cls.classInfo.selfInfo ne NoType) ValDef(ctx.newSelfSym(cls))
286
else EmptyValDef
287
def isOwnTypeParam(stat: Tree) =
288
- (stat.symbol.is(TypeParam)) && stat.symbol.owner == cls
+ stat.symbol.is(TypeParam) && stat.symbol.owner == cls
289
val bodyTypeParams = body filter isOwnTypeParam map (_.symbol)
290
val newTypeParams =
291
for (tparam <- cls.typeParams if !(bodyTypeParams contains tparam))
0 commit comments