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.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/pos/t8040.scala b/test/files/pos/t8040.scala
index 1d1a770060..3e01014ab4 100644
--- a/test/files/pos/t8040.scala
+++ b/test/files/pos/t8040.scala
@@ -5,4 +5,9 @@ object Test {
}
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
}