File tree Expand file tree Collapse file tree
testsuite/tests/typing-local Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,9 +103,6 @@ let keyword_table =
103103
104104let lookup_keyword name =
105105 match Hashtbl. find keyword_table name with
106- | LOCAL | NONLOCAL | GLOBAL
107- when not (Clflags.Extension. is_enabled Local ) ->
108- LIDENT name
109106 | kw -> kw
110107 | exception Not_found ->
111108 LIDENT name
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ type lfn' = local_ string -> int
77[%% expect{|
88type fn = string -> int
99type lfn = (string [@ ocaml.local]) -> int
10- Line 3 , characters 12 -25 :
10+ Line 3 , characters 19 -25 :
11113 | 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
1515|}]
1616
1717let cast (x : fn ) = (x : lfn )
You can’t perform that action at this time.
0 commit comments