summaryrefslogtreecommitdiff
path: root/test/files/pos/t8040.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t8040.scala')
-rw-r--r--test/files/pos/t8040.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/pos/t8040.scala b/test/files/pos/t8040.scala
index b067f36b0b..1d1a770060 100644
--- a/test/files/pos/t8040.scala
+++ b/test/files/pos/t8040.scala
@@ -3,4 +3,6 @@ object Test {
implicit class C(val sc: StringContext) { // no warn unused sc
def c(args: Any*): String = "c?" + args.mkString(",") // would warn unused args
}
+
+ def f(implicit x: DummyImplicit) = 42 // no warn DummyImplicit
}