Skip to content

Commit 1dc6c7c

Browse files
noti0na1tgodzik
authored andcommitted
Cleanup the info of a Bind symbol in posttyper
[Cherry-picked c0abb05]
1 parent bf5865e commit 1dc6c7c

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

tests/pos/i24456.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

0 commit comments

Comments
 (0)