From 7adf9f9112dd9e294bf202be9faa6e37891bd83c Mon Sep 17 00:00:00 2001 From: Tom Grigg Date: Thu, 4 Feb 2021 19:22:59 -0800 Subject: [PATCH] Add regression test for #10366 --- tests/pos/i10366.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pos/i10366.scala diff --git a/tests/pos/i10366.scala b/tests/pos/i10366.scala new file mode 100644 index 000000000000..1dc241731d09 --- /dev/null +++ b/tests/pos/i10366.scala @@ -0,0 +1,7 @@ +import scala.compiletime.testing._ + +object Test: + implicit class ShouldWrapper(lhs: Boolean): + def shouldBe(rhs: Boolean): Unit = ??? + + typeChecks("class Bar") shouldBe true