File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -424,10 +424,11 @@ module.exports = grammar({
424424
425425 ) ,
426426
427- generic_type : $ => seq (
427+ generic_type : $ => prec . left ( seq (
428428 $ . _type_identifier ,
429- $ . type_arguments
430- ) ,
429+ $ . type_arguments ,
430+ optional ( $ . as_aliasing_type )
431+ ) ) ,
431432
432433 type_arguments : $ => seq (
433434 '<' ,
Original file line number Diff line number Diff line change @@ -349,6 +349,7 @@ Generic
349349
350350type t<'a, 'b> = (array<'a>, array<'b>)
351351type t = result<(), string>
352+ type t<'a> = generic<'a> as 's
352353
353354---
354355
@@ -365,7 +366,15 @@ type t = result<(), string>
365366 (type_identifier)
366367 (type_arguments
367368 (unit)
368- (type_identifier)))))
369+ (type_identifier))))
370+
371+ (type_declaration
372+ (type_identifier)
373+ (type_parameters (type_identifier))
374+ (generic_type
375+ (type_identifier)
376+ (type_arguments (type_identifier))
377+ (as_aliasing_type (type_identifier)))))
369378
370379===========================================
371380Recursive
You can’t perform that action at this time.
0 commit comments