diff options
author | Som Snytt <som.snytt@gmail.com> | 2017-04-06 18:13:22 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2017-04-06 18:13:22 -0700 |
commit | bad61ce0ff9f460c2f8873c134a7f6bee0a53824 (patch) | |
tree | a8f4cba306966ce23a0ec6629f6e355f76a584cf /test | |
parent | 1290fff26ea626f5d1f9f3c65bd5bd0a97939332 (diff) | |
download | scala-bad61ce0ff9f460c2f8873c134a7f6bee0a53824.tar.gz scala-bad61ce0ff9f460c2f8873c134a7f6bee0a53824.tar.bz2 scala-bad61ce0ff9f460c2f8873c134a7f6bee0a53824.zip |
SD-363 Xlint no warn deprecated params, defaults
Deprecation is an escape hatch for unused params.
Since default arg getters receive values of previous
args, don't warn when they are unused.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t8040.scala | 5 |
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 } |