From 7bf1f607a81904eba52c78c482193c8e5c387ff9 Mon Sep 17 00:00:00 2001 From: Jamie Thompson Date: Thu, 22 Jul 2021 16:50:53 +0200 Subject: [PATCH] fix #9482: add pos test --- tests/pos/i9482.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/pos/i9482.scala diff --git a/tests/pos/i9482.scala b/tests/pos/i9482.scala new file mode 100644 index 000000000000..6549539e49a7 --- /dev/null +++ b/tests/pos/i9482.scala @@ -0,0 +1,11 @@ +import scala.reflect.OptManifest + +object Ref { + def make[A: OptManifest]: Ref[A] = ??? +} +trait Ref[A] + +trait Foo[A] { + val bar = Ref.make[Int] + val baz: Ref[A] = Ref.make +}