@@ -63,7 +63,7 @@ class StableAccessors {
63
63
64
64
trait DefaultArgs {
65
65
// warn about default getters for x2 and x3
66
- private def bippy(x1: Int, x2: Int = 10, x3: Int = 15): Int = x1 + x2 + x3 // error // error
66
+ private def bippy(x1: Int, x2: Int = 10, x3: Int = 15): Int = x1 + x2 + x3 // no more warn warn since #17061
67
67
68
68
def boppy() = bippy(5, 100, 200)
69
69
}
@@ -92,7 +92,7 @@ trait Locals {
92
92
}
93
93
94
94
object Types {
95
- private object Dongo { def f = this } // error warn
95
+ private object Dongo { def f = this } // no more warn since #17061
96
96
private class Bar1 // error warn
97
97
private class Bar2 // no warn
98
98
private type Alias1 = String // error warn
@@ -102,7 +102,7 @@ object Types {
102
102
def f(x: Alias2) = x.length
103
103
104
104
def l1() = {
105
- object HiObject { def f = this } // error warn
105
+ object HiObject { def f = this } // no more warn since #17061
106
106
class Hi { // error warn
107
107
def f1: Hi = new Hi
108
108
def f2(x: Hi) = x
@@ -125,9 +125,9 @@ trait Underwarn {
125
125
}
126
126
127
127
class OtherNames {
128
- private def x_=(i: Int): Unit = () // error Dotty triggers unused private member
129
- private def x: Int = 42 // error Dotty triggers unused private member
130
- private def y_=(i: Int): Unit = () // error // Dotty triggers unused private member
128
+ private def x_=(i: Int): Unit = () // no more warn since #17061
129
+ private def x: Int = 42 // error Dotty triggers unused private member : To investigate
130
+ private def y_=(i: Int): Unit = () // // no more warn since #17061
131
131
private def y: Int = 42
132
132
133
133
def f = y
@@ -174,7 +174,7 @@ trait CaseyAtTheBat {
174
174
class `not even using companion privates`
175
175
176
176
object `not even using companion privates` {
177
- private implicit class `for your eyes only`(i: Int) { // error warn
177
+ private implicit class `for your eyes only`(i: Int) { // no more warn since #17061
178
178
def f = i
179
179
}
180
180
}
0 commit comments