Skip to content

Commit 965c5f3

Browse files
committed
Adjust usages in tests
1 parent 19ed7ad commit 965c5f3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

repl/test-resources/type-printer/source-compatible

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ scala> val m = new Bag { val f = 23; def g = 47; def h(i: Int): Int = i; var i =
44
val m:
55
Bag{
66
val f: Int; def g: Int; def h(i: Int): Int; val i: Int;
7-
def i_=(x$1: Int): Unit; type N = Int; val l: List[Int];
7+
def i_=(`x$1`: Int): Unit; type N = Int; val l: List[Int];
88
def p[T](t: T): String
99
} = Bag()
10-
scala> type t = Bag { val f: Int; def g: Int; def h(i: Int): Int; val i: Int; def i_=(x$1: Int): Unit; type N = Int; val l: List[Int]; val s: String @unchecked }
10+
scala> type t = Bag { val f: Int; def g: Int; def h(i: Int): Int; val i: Int; def i_=(`x$1`: Int): Unit; type N = Int; val l: List[Int]; val s: String @unchecked }
1111
// defined alias type t
1212
=
1313
Bag{
1414
val f: Int; def g: Int; def h(i: Int): Int; val i: Int;
15-
def i_=(x$1: Int): Unit; type N = Int; val l: List[Int];
15+
def i_=(`x$1`: Int): Unit; type N = Int; val l: List[Int];
1616
val s: String @unchecked
1717
}

tests/init/warn/java1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class A extends Spliterator.OfDouble:
55
def characteristics() = 10
66
def estimateSize() = 10
77
def trySplit() = ???
8-
def tryAdvance(x$0: java.util.function.DoubleConsumer): Boolean = false
8+
def tryAdvance(`x$0`: java.util.function.DoubleConsumer): Boolean = false
99

1010
val m = n + 1
1111
val n = 10 // warn

tests/neg/i15381.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//> using options -Vprint:parser
22

3-
case class $[A](value: A)
3+
case class `$`[A](value: A)
44

55
def g: Int = $ // error
66

tests/neg/i4986c.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Outer[A] {
1414
}
1515
}
1616

17-
trait X$Y
17+
trait `X$Y`
1818

1919
@implicitNotFound(msg = "There's no U[${X}, ${Y}, ${Z}]")
2020
trait U[X, Y[_], Z[_, ZZ]] {

tests/warn/scala2-t11681.scala renamed to tests/warn/t11681.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ object Answers {
106106
def answer: Int = 42
107107
}
108108

109-
val a$1 = 2
109+
val `a$1` = 2

0 commit comments

Comments
 (0)