File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ t13006.scala:23: warning: constructor D in class D is deprecated
19
19
t13006.scala:24: warning: constructor D in class D is deprecated
20
20
def u4 = new D(10) // warn
21
21
^
22
+ t13006.scala:34: warning: class C in object oho is deprecated
23
+ def t1 = oho.C(10) // warn
24
+ ^
25
+ t13006.scala:35: warning: constructor D in class D is deprecated
26
+ def t2 = oho.D(10) // warn
27
+ ^
22
28
error: No warnings can be incurred under -Werror.
23
- 7 warnings
29
+ 9 warnings
24
30
1 error
Original file line number Diff line number Diff line change @@ -24,3 +24,13 @@ class T {
24
24
def u4 = new D (10 ) // warn
25
25
def u5 (d : D ) = 10 // no warn
26
26
}
27
+
28
+ object oho {
29
+ @ deprecated case class C private [oho] (x : Int )
30
+ case class D @ deprecated() private [oho] (x : Int )
31
+ }
32
+
33
+ class T1 {
34
+ def t1 = oho.C (10 ) // warn
35
+ def t2 = oho.D (10 ) // warn
36
+ }
You can’t perform that action at this time.
0 commit comments