@@ -94,4 +94,43 @@ new SomeClass<
9494 fifth,
9595 sixth,
9696 seventh,
97- eighth);
97+ eighth);
98+ >>> generic instantiation all fit on one line
99+ Foo<A,B,C,D>;
100+ <<<
101+ Foo<A, B, C, D>;
102+ >>> generic instantiation split between args
103+ LongClassName<First, Second, Third, Fourth>;
104+ <<<
105+ LongClassName<First, Second, Third,
106+ Fourth>;
107+ >>> generic instantiation split before first if needed
108+ LongClassName<FirstTypeArgumentIsTooLong, Second>;
109+ <<<
110+ LongClassName<
111+ FirstTypeArgumentIsTooLong, Second>;
112+ >>> generic instantiation split in middle if fit in two lines
113+ LongClassName<First, Second, Third, Fourth, Fifth, Sixth, Seventh>;
114+ <<<
115+ LongClassName<First, Second, Third,
116+ Fourth, Fifth, Sixth, Seventh>;
117+ >>> generic instantiation split one per line if they don't fit in two lines
118+ LongClassName<First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth>;
119+ <<<
120+ LongClassName<
121+ First,
122+ Second,
123+ Third,
124+ Fourth,
125+ Fifth,
126+ Sixth,
127+ Seventh,
128+ Eighth>;
129+ >>> generic instantiation indent nested type arguments
130+ LongClassName<First, Inner<Second, Third, Fourth, Fifth, Sixth, Seventh>, Eighth>;
131+ <<<
132+ LongClassName<
133+ First,
134+ Inner<Second, Third, Fourth, Fifth,
135+ Sixth, Seventh>,
136+ Eighth>;
0 commit comments