File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
compiler/test/dotty/tools/repl Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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]" )
Original file line number Diff line number Diff 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 = ()
You can’t perform that action at this time.
0 commit comments