diff --git a/tests/pos/i8284.scala b/tests/pos/i8284.scala new file mode 100644 index 000000000000..148ef81c67b6 --- /dev/null +++ b/tests/pos/i8284.scala @@ -0,0 +1,5 @@ +type Foo +given myFoo1 as (Foo { type X = Int }) = ??? + +type Bar = Foo { type X = Int } +given myFoo2 as Bar = ??? \ No newline at end of file