Skip to content

Commit 47a720f

Browse files
committed
Fix tests
1 parent 28782eb commit 47a720f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

compiler/test/dotty/tools/repl/ReplCompilerTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class ReplCompilerTests extends ReplTest {
155155
fromInitialState { implicit state => run("given Int = 10") }
156156
.andThen { implicit state =>
157157
assertEquals(
158-
"def given_Int: Int",
158+
"lazy val given_Int: Int",
159159
storedOutput().trim
160160
)
161161
run("implicitly[Int]")

tests/neg-macros/i7048e.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@ abstract class Test {
99

1010
def foo(using QuoteContext): Expr[Any] = {
1111

12-
val r = '{Option.empty[T]} // error: is not stable
12+
val r = '{Option.empty[T]} // works
1313

1414
{
1515
val t: Test = this
1616
import t.given
1717
println(Type.show[t.T])
18-
// val r = '{Option.empty[t.T]} // access to value t from wrong staging level
18+
val r = '{Option.empty[t.T]} // works
1919
val r2 = '{Option.empty[t.T.Underlying]} // works
2020
}
2121

2222
{
2323
val r1 = '{Option.empty[T.Underlying]} // works
2424
val r2 = '{Option.empty[List[T.Underlying]]} // works
25-
val r3 = '{summon[Type[T.Underlying]]} // error: is not stable
26-
val r4 = '{summon[T.Underlying <:< Any]} // error: is not stable
25+
val r3 = '{summon[Type[T.Underlying]]} // error: access to value t from wrong staging level
26+
val r4 = '{summon[T.Underlying <:< Any]} // works
2727
}
2828

2929
{
3030
val s = '{Option.empty[T.Underlying]} // works
3131
val r = '{identity($s)} // works
32-
val r2 = '{identity(${s: Expr[Option[T]]})} // error // error : is not stable
32+
val r2 = '{identity(${s: Expr[Option[T]]})} //works
3333
}
3434

3535
r
3636
}
3737
}
3838

39-
@main def main = ()
39+
@main def tester = ()

0 commit comments

Comments
 (0)