forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregionMissingComma.res.txt
More file actions
43 lines (31 loc) · 1.04 KB
/
Copy pathregionMissingComma.res.txt
File metadata and controls
43 lines (31 loc) · 1.04 KB
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
42
43
Warning number 3
syntax_tests/data/parsing/errors/other/regionMissingComma.res:2:31
1 │ external make: (
2 │ ~style: ReactDOMRe.Style.t=?.
3 │ ~image: bool=?,
4 │ ) => React.element = "ModalContent"
deprecated: The `(. ...)` uncurried syntax is deprecated. Uncurried is now the default in ReScript — remove the leading dot.
Syntax error!
syntax_tests/data/parsing/errors/other/regionMissingComma.res:2:31
1 │ external make: (
2 │ ~style: ReactDOMRe.Style.t=?.
3 │ ~image: bool=?,
4 │ ) => React.element = "ModalContent"
Did you forget a `,` here?
Syntax error!
syntax_tests/data/parsing/errors/other/regionMissingComma.res:8:11-9:11
6 │ type student<'extraInfo> = {
7 │ name: string,
8 │ age: int
9 │ otherInfo: 'extraInfo
10 │ }
11 │
Did you forget a `,` here?
external make :
?style:ReactDOMRe.Style.t -> ?image:bool -> React.element (a:2) =
"ModalContent"
type nonrec 'extraInfo student =
{
name: string ;
age: int ;
otherInfo: 'extraInfo }