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 7e2aa57 commit d8c24cdCopy full SHA for d8c24cd
tests/pos/i24207.scala
@@ -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