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




                                                                                     

                                                                                    




                                                                                     
 
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


  def f(x: Int)(y: Int = 1) = x + y                         // no warn default getter

  def g(@deprecated("","") x: Int) = 42                     // no warn deprecated
}