File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4228,8 +4228,8 @@ and parse_record_or_object_type ?current_type_name_path ?inline_types_context
42284228      Asttypes. Closed 
42294229    |  _  -> Asttypes. Closed 
42304230  in 
4231-   match  (p.token,  inline_types_context, current_type_name_path) with 
4232-   |  Lident   _ ,  Some  inline_types_context , Some  current_type_name_path  ->
4231+   match  (inline_types_context, current_type_name_path) with 
4232+   |  Some  inline_types_context , Some  current_type_name_path   when   Grammar. is_record_decl_start p.token  ->
42334233    let  labels = 
42344234      parse_comma_delimited_region ~grammar: Grammar. RecordDecl  ~closing: Rbrace 
42354235        ~f: 
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ let is_field_decl_start = function
195195  |  _  -> false 
196196
197197let  is_record_decl_start  =  function 
198-   |  Token. At  |  Mutable  |  Lident  _  |  DotDotDot  |   String   _   -> true 
198+   |  Token. At  |  Mutable  |  Lident  _  |  DotDotDot  -> true 
199199  |  _  -> false 
200200
201201let  is_typ_expr_start  =  function 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments