@@ -412,6 +412,20 @@ public function provideParseData(): array
412412 ),
413413 ),
414414 ],
415+ [
416+ 'array<int, Foo \\Bar> ' ,
417+ new GenericTypeNode (
418+ new IdentifierTypeNode ('array ' ),
419+ [
420+ new IdentifierTypeNode ('int ' ),
421+ new IdentifierTypeNode ('Foo \\Bar ' ),
422+ ],
423+ [
424+ GenericTypeNode::VARIANCE_INVARIANT ,
425+ GenericTypeNode::VARIANCE_INVARIANT ,
426+ ],
427+ ),
428+ ],
415429 [
416430 'array<
417431 // index with an int
@@ -2063,6 +2077,16 @@ public function provideParseData(): array
20632077 [],
20642078 ),
20652079 ],
2080+ [
2081+ '(Foo is Bar ? never : int) ' ,
2082+ new ConditionalTypeNode (
2083+ new IdentifierTypeNode ('Foo ' ),
2084+ new IdentifierTypeNode ('Bar ' ),
2085+ new IdentifierTypeNode ('never ' ),
2086+ new IdentifierTypeNode ('int ' ),
2087+ false ,
2088+ ),
2089+ ],
20662090 [
20672091 '(
20682092 Foo is Bar
@@ -2569,6 +2593,18 @@ public function provideParseData(): array
25692593 ),
25702594 ]),
25712595 ],
2596+ [
2597+ 'object{
2598+ a: int,
2599+ } ' ,
2600+ new ObjectShapeNode ([
2601+ new ObjectShapeItemNode (
2602+ new IdentifierTypeNode ('a ' ),
2603+ false ,
2604+ new IdentifierTypeNode ('int ' ),
2605+ ),
2606+ ]),
2607+ ],
25722608 [
25732609 'object{
25742610 // a is for apple
0 commit comments