Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/pos/i24207.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class Generator:
private def generateTable(table: Table) =
val (ownRelations, _) = calculateOwnRelations(table)
ownRelations

private def calculateOwnRelations(table: Table) =
val ownRelations = table.relations.filter(_.association.isDefined)
(ownRelations, Nil)

case class Table(relations: Seq[TableRelation])
case class TableRelation(association: Option[Association])
trait Association