Skip to content

Commit

Permalink
Regression test for 21360 (#21591)
Browse files Browse the repository at this point in the history
Closes #21360 

@dwijnand This might have been fixed by your recently merged changes to
constructor completion.
  • Loading branch information
odersky authored Sep 14, 2024
2 parents e1a4941 + 0047389 commit aec9a79
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/pos/i21360.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
case class Table(owner: Owner.Id)

case class Owner(owner: Owner.Id) // type Id is not a member of object Playground.Owner

trait Typed[Tag] {
type Id = String
}

object Owner extends Typed[Owner] {
//type Id = String
}

0 comments on commit aec9a79

Please sign in to comment.