We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73ac296 commit 6129ac5Copy full SHA for 6129ac5
tests/neg-custom-args/i2333.scala
@@ -1,5 +1,8 @@
1
-@deprecated("bla", "2.11.0") class Foo
+@deprecated("bla", "2.11.0") class Foo {
2
+ def this(x: Int) = this()
3
+}
4
5
object Test {
- new Foo // error
-}
6
+ new Foo // error: deprecated
7
+ new Foo(1) // error: deprecated
8
0 commit comments