Skip to content

Commit 9533931

Browse files
committed
Adapt new regression test i16639a.scala
1 parent 7663182 commit 9533931

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/neg-custom-args/fatal-warnings/i16639a.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class StableAccessors {
6363

6464
trait DefaultArgs {
6565
// 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
6767

6868
def boppy() = bippy(5, 100, 200)
6969
}
@@ -92,7 +92,7 @@ trait Locals {
9292
}
9393

9494
object Types {
95-
private object Dongo { def f = this } // error warn
95+
private object Dongo { def f = this } // no more warn since #17061
9696
private class Bar1 // error warn
9797
private class Bar2 // no warn
9898
private type Alias1 = String // error warn
@@ -102,7 +102,7 @@ object Types {
102102
def f(x: Alias2) = x.length
103103

104104
def l1() = {
105-
object HiObject { def f = this } // error warn
105+
object HiObject { def f = this } // no more warn since #17061
106106
class Hi { // error warn
107107
def f1: Hi = new Hi
108108
def f2(x: Hi) = x
@@ -125,9 +125,9 @@ trait Underwarn {
125125
}
126126

127127
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
131131
private def y: Int = 42
132132

133133
def f = y
@@ -174,7 +174,7 @@ trait CaseyAtTheBat {
174174
class `not even using companion privates`
175175

176176
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
178178
def f = i
179179
}
180180
}

0 commit comments

Comments
 (0)