From 5e07e6780afd854e7a5547d67e8d2a98d9853247 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Mon, 30 Oct 2023 09:13:14 +0100 Subject: [PATCH] Add regression test Closes #18789 --- tests/pos/18789.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/pos/18789.scala diff --git a/tests/pos/18789.scala b/tests/pos/18789.scala new file mode 100644 index 000000000000..28ddfd56305d --- /dev/null +++ b/tests/pos/18789.scala @@ -0,0 +1,4 @@ +sealed trait TypeId: + case class Foo() extends TypeId + +object TypeId {}