Skip to content

Commit 6129ac5

Browse files
committed
Add test
1 parent 73ac296 commit 6129ac5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/neg-custom-args/i2333.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
@deprecated("bla", "2.11.0") class Foo
1+
@deprecated("bla", "2.11.0") class Foo {
2+
def this(x: Int) = this()
3+
}
24

35
object Test {
4-
new Foo // error
5-
}
6+
new Foo // error: deprecated
7+
new Foo(1) // error: deprecated
8+
}

0 commit comments

Comments
 (0)