Skip to content

Commit d8c24cd

Browse files
noti0na1tgodzik
authored andcommitted
Cleanup the type of UnApply trees in posttyper
[Cherry-picked 170f1ff]
1 parent 7e2aa57 commit d8c24cd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/pos/i24207.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class Generator:
2+
private def generateTable(table: Table) =
3+
val (ownRelations, _) = calculateOwnRelations(table)
4+
ownRelations
5+
6+
private def calculateOwnRelations(table: Table) =
7+
val ownRelations = table.relations.filter(_.association.isDefined)
8+
(ownRelations, Nil)
9+
10+
case class Table(relations: Seq[TableRelation])
11+
case class TableRelation(association: Option[Association])
12+
trait Association

0 commit comments

Comments
 (0)