Skip to content

Commit a7628fd

Browse files
authored
Merge pull request #640 from scala/backport-lts-3.3-24259
Backport "Fix scala#24207: Cleanup the type of `UnApply` trees in posttyper" to 3.3 LTS
2 parents ab10e41 + d8c24cd commit a7628fd

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)