diff options
Diffstat (limited to 'test/files/pos/t8040.scala')
-rw-r--r-- | test/files/pos/t8040.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t8040.scala b/test/files/pos/t8040.scala new file mode 100644 index 0000000000..3e01014ab4 --- /dev/null +++ b/test/files/pos/t8040.scala @@ -0,0 +1,13 @@ + +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 +} |