Skip to content

Commit d5ea0e9

Browse files
committed
Tweak test warns
1 parent 1907775 commit d5ea0e9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/warn/i16639a.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ trait Locals {
9191
}
9292

9393
object Types {
94-
private object Dongo { def f = this } // no more warn since #17061
94+
private object Dongo { def f = this } // warn
9595
private class Bar1 // warn warn
9696
private class Bar2 // no warn
9797
private type Alias1 = String // warn warn
@@ -101,7 +101,7 @@ object Types {
101101
def f(x: Alias2) = x.length
102102

103103
def l1() = {
104-
object HiObject { def f = this } // no more warn since #17061
104+
object HiObject { def f = this } // warn
105105
class Hi { // warn warn
106106
def f1: Hi = new Hi
107107
def f2(x: Hi) = x
@@ -202,4 +202,4 @@ trait `short comings` {
202202
val x = 42 // warn /Dotty only triggers in dotty
203203
17
204204
}
205-
}
205+
}

tests/warn/i17371.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def Test() =
1717

1818
// unminimized OP
1919
trait Circular[T] extends Ordering[T]
20-
trait Turns[C: Circular, T] extends Ordering[T]:
20+
trait Turns[C: Circular, T] extends Ordering[T]: // warn Circular is not a marker interface
2121
extension (turns: T) def extract: C
2222

2323
def f[K, T](start: T, end: T)(using circular: Circular[K], turns: Turns[K, T]): Boolean =

0 commit comments

Comments
 (0)