summaryrefslogblamecommitdiff
path: root/test/files/pos/t8040.scala
blob: 1d1a770060c2c2118deb942969b30c47d8a09d06 (plain) (tree)
1
2
3
4
5
6
7
8




                                                                                     

                                                                                    
 
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
}