File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
testsuite/tests/typing-local Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,6 @@ let keyword_table =
103
103
104
104
let lookup_keyword name =
105
105
match Hashtbl. find keyword_table name with
106
- | LOCAL | NONLOCAL | GLOBAL
107
- when not (Clflags.Extension. is_enabled Local ) ->
108
- LIDENT name
109
106
| kw -> kw
110
107
| exception Not_found ->
111
108
LIDENT name
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ type lfn' = local_ string -> int
7
7
[%% expect{|
8
8
type fn = string -> int
9
9
type lfn = (string [@ ocaml.local]) -> int
10
- Line 3 , characters 12 -25 :
10
+ Line 3 , characters 19 -25 :
11
11
3 | type lfn' = local_ string -> int
12
- ^^^^^^^ ^^^^^^
13
- Error : The type constructor string expects 0 argument(s),
14
- but is here applied to 1 argument ( s )
12
+ ^^^^^^
13
+ Error : The local extension is disabled
14
+ To enable it , pass the ' - extension local ' flag
15
15
|}]
16
16
17
17
let cast (x : fn ) = (x : lfn )
You can’t perform that action at this time.
0 commit comments