Skip to content

Commit b219dc1

Browse files
committed
add tests
1 parent 0e4e91f commit b219dc1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/corpus/type_declarations.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ Type constraint
530530

531531
type t<'a> = 'a constraint 'a = int
532532
type decorator<'a, 'b> = 'a => 'b constraint 'a = int constraint 'b = _ => _
533+
type t<'a> constraint 'a = t
533534

534535
---
535536

@@ -553,4 +554,11 @@ type decorator<'a, 'b> = 'a => 'b constraint 'a = int constraint 'b = _ => _
553554
(type_identifier)
554555
(function_type
555556
(function_type_parameters (type_identifier))
556-
(type_identifier)))))
557+
(type_identifier))))
558+
559+
(type_declaration
560+
(type_identifier)
561+
(type_parameters (type_identifier))
562+
(type_constraint
563+
(type_identifier)
564+
(type_identifier))))

0 commit comments

Comments
 (0)