File tree Expand file tree Collapse file tree 3 files changed +33
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -624,8 +624,11 @@ class PostTyper extends MacroTransform with InfoTransformer { thisPhase =>
624624 case _ =>
625625 processMemberDef(super .transform(scala2LibPatch(tree)))
626626 case tree : Bind =>
627- if tree.symbol.isType && ! tree.symbol.name.is(WildcardParamName ) then
628- Checking .checkGoodBounds(tree.symbol)
627+ val sym = tree.symbol
628+ if sym.isType && ! sym.name.is(WildcardParamName ) then
629+ Checking .checkGoodBounds(sym)
630+ // Cleanup retains from the info of the Bind symbol
631+ sym.copySymDenotation(info = transformAnnotsIn(CleanupRetains ()(sym.info))).installAfter(thisPhase)
629632 super .transform(tree)
630633 case tree : New if isCheckable(tree) =>
631634 Checking .checkInstantiable(tree.tpe, tree.tpe, tree.srcPos)
Original file line number Diff line number Diff line change 1+ // Similar to i24207
2+
3+ class Generator :
4+ private def generateTable (table : Table ) =
5+ val (ownRelations, unusedTerm) = calculateOwnRelations(table)
6+ None
7+
8+ private def calculateOwnRelations (table : Table ) =
9+ val ownRelations = table.relations.filter(_.association.isDefined)
10+ (ownRelations, Nil )
11+
12+ case class Table (relations : Seq [TableRelation ])
13+ case class TableRelation (association : Option [Association ])
14+ trait Association
Original file line number Diff line number Diff line change 1+ // Similar to i24207
2+
3+ class Generator :
4+ private def generateTable (table : Table ) =
5+ val (ownRelations, unusedTerm) = calculateOwnRelations(table)
6+ None
7+
8+ private def calculateOwnRelations (table : Table ) =
9+ val ownRelations = table.relations.filter(_.association.isDefined)
10+ (ownRelations, Nil )
11+
12+ case class Table (relations : Seq [TableRelation ])
13+ case class TableRelation (association : Option [Association ])
14+ trait Association
You can’t perform that action at this time.
0 commit comments