From 0047389d0429c67abfb6f04c812a889b0b988252 Mon Sep 17 00:00:00 2001 From: odersky Date: Sat, 14 Sep 2024 18:15:34 +0200 Subject: [PATCH] Regression test for 21360 --- tests/pos/i21360.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/pos/i21360.scala 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