Skip to content

Commit

Permalink
Tweak test warns
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed Nov 5, 2024
1 parent 1907775 commit d5ea0e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/warn/i16639a.scala
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ trait Locals {
}

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

def l1() = {
object HiObject { def f = this } // no more warn since #17061
object HiObject { def f = this } // warn
class Hi { // warn warn
def f1: Hi = new Hi
def f2(x: Hi) = x
Expand Down Expand Up @@ -202,4 +202,4 @@ trait `short comings` {
val x = 42 // warn /Dotty only triggers in dotty
17
}
}
}
2 changes: 1 addition & 1 deletion tests/warn/i17371.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def Test() =

// unminimized OP
trait Circular[T] extends Ordering[T]
trait Turns[C: Circular, T] extends Ordering[T]:
trait Turns[C: Circular, T] extends Ordering[T]: // warn Circular is not a marker interface
extension (turns: T) def extract: C

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

0 comments on commit d5ea0e9

Please sign in to comment.