File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,11 @@ ConstantType(Int(1))
7
7
Literal(Long(2))
8
8
ConstantType(Long(2))
9
9
10
- Literal(Double(2.0))
11
- ConstantType(Double(2.0))
10
+ Literal(Float(2.1))
11
+ ConstantType(Float(2.1))
12
+
13
+ Literal(Double(2.2))
14
+ ConstantType(Double(2.2))
12
15
13
16
Literal(String("abc"))
14
17
ConstantType(String("abc"))
@@ -19,6 +22,15 @@ Apply(Ident(println), List(Literal(String("abc"))))
19
22
Typed(Literal(Int(8)), Ident(Int))
20
23
NameRef(Int, ###)
21
24
25
+ Typed(Literal(Byte(8)), Ident(Byte))
26
+ NameRef(Byte, ###)
27
+
28
+ Typed(Literal(Short(8)), Ident(Short))
29
+ NameRef(Short, ###)
30
+
31
+ Literal(Char('a'))
32
+ ConstantType(Char('a'))
33
+
22
34
Block(List(Literal(Int(1)), Literal(Int(2))), Literal(Int(3)))
23
35
ConstantType(Int(3))
24
36
Original file line number Diff line number Diff line change @@ -28,10 +28,14 @@ object Test {
28
28
'(true),
29
29
'(1),
30
30
'(2L),
31
- '(2d),
31
+ '(2.1f),
32
+ '(2.2d),
32
33
'("abc"),
33
34
'(println("abc")),
34
35
'(8: Int),
36
+ '(8: Byte),
37
+ '(8: Short),
38
+ '( ' a' ),
35
39
' { 1 ; 2 ; 3 },
36
40
'(if (true: Boolean) 1 else 2),
37
41
'("a" match { case "a" => () }),
You can’t perform that action at this time.
0 commit comments