diff --git a/tests/pos/i21360.scala b/tests/pos/i21360.scala new file mode 100644 index 000000000000..5bc1ac1ac5b0 --- /dev/null +++ b/tests/pos/i21360.scala @@ -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 +} \ No newline at end of file