forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplateLiteral.res.txt
More file actions
41 lines (29 loc) · 1007 Bytes
/
templateLiteral.res.txt
File metadata and controls
41 lines (29 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Syntax error!
syntax_tests/data/parsing/errors/pattern/templateLiteral.res:4:3-27
2 │
3 │ switch l {
4 │ | `zero coord ${zeroCoord}` => ()
5 │ | `first coord ${zeroCoord} snd ${zeroCoord} ` => ()
6 │ | _ => ()
String interpolation is not supported in pattern matching.
Syntax error!
syntax_tests/data/parsing/errors/pattern/templateLiteral.res:5:33
3 │ switch l {
4 │ | `zero coord ${zeroCoord}` => ()
5 │ | `first coord ${zeroCoord} snd ${zeroCoord} ` => ()
6 │ | _ => ()
7 │ }
Not sure what to do with this character: "$".
Syntax error!
syntax_tests/data/parsing/errors/pattern/templateLiteral.res:5:3-46
3 │ switch l {
4 │ | `zero coord ${zeroCoord}` => ()
5 │ | `first coord ${zeroCoord} snd ${zeroCoord} ` => ()
6 │ | _ => ()
7 │ }
String interpolation is not supported in pattern matching.
let zeroCoord = {js|0.0|js}
;;match l with
| (("")[@res.template ]) -> ()
| (("")[@res.template ]) -> ()
| _ -> ()