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 {
155
155
fromInitialState { implicit state => run(" given Int = 10" ) }
156
156
.andThen { implicit state =>
157
157
assertEquals(
158
- " def given_Int: Int" ,
158
+ " lazy val given_Int: Int" ,
159
159
storedOutput().trim
160
160
)
161
161
run(" implicitly[Int]" )
Original file line number Diff line number Diff line change @@ -9,31 +9,31 @@ abstract class Test {
9
9
10
10
def foo (using QuoteContext ): Expr [Any ] = {
11
11
12
- val r = ' {Option .empty[T ]} // error: is not stable
12
+ val r = ' {Option .empty[T ]} // works
13
13
14
14
{
15
15
val t : Test = this
16
16
import t .given
17
17
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
19
19
val r2 = ' {Option .empty[t.T .Underlying ]} // works
20
20
}
21
21
22
22
{
23
23
val r1 = ' {Option .empty[T .Underlying ]} // works
24
24
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
27
27
}
28
28
29
29
{
30
30
val s = ' {Option .empty[T .Underlying ]} // works
31
31
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
33
33
}
34
34
35
35
r
36
36
}
37
37
}
38
38
39
- @ main def main = ()
39
+ @ main def tester = ()
You can’t perform that action at this time.
0 commit comments