diff options
Diffstat (limited to 'test/files/neg/names-defaults-neg-warn.scala')
-rw-r--r-- | test/files/neg/names-defaults-neg-warn.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/neg/names-defaults-neg-warn.scala b/test/files/neg/names-defaults-neg-warn.scala new file mode 100644 index 0000000000..7cb956cc86 --- /dev/null +++ b/test/files/neg/names-defaults-neg-warn.scala @@ -0,0 +1,14 @@ +object Test extends Application { + object deprNam2 { + def f(@deprecatedName('s) x: String) = 1 + def f(s: Object) = 2 + + def g(@deprecatedName('x) s: Object) = 3 + def g(s: String) = 4 + } + + deprNam2.f(s = new Object) + deprNam2.f(s = "dlfkj") + deprNam2.g(x = "dlkjf") + deprNam2.g(s = new Object) +} |