blob: 11ad8535b805451b8b26025b9b60c8ae72e86822 [file] [log] [blame]
40 columns |
>>> no spaces around braces
new Foo< T >();
<<<
new Foo<T>();
>>> space between names
new Foo< A,B, C,D>();
<<<
new Foo<A, B, C, D>();
>>> void as a class type argument
new Foo< void,void Function()>();
<<<
new Foo<void, void Function()>();
>>> void as a generic method type argument
list.map< void,void Function()>();
<<<
list.map<void, void Function()>();
>>> named constructor with implicit "new"
C < int ,float> .named(42);
<<<
C<int, float>.named(42);
>>> nullable type argument
Map< int ? , List<String ? > ? >();
<<<
Map<int?, List<String?>?>();
>>> record type type argument
Set < ( int x , String , { bool b, int i } )>();
<<<
Set<(int x, String, {bool b, int i})>();