blob: 40f982dc6c063eeb4cf2e6e83bd25a30dc159cbd [file] [log] [blame]
40 columns |
>>> old generic typedef syntax
typedef Foo < T ,S >(T t,S s);
<<<
typedef Foo<T, S>(T t, S s);
>>> non-generic in typedef (skip: published version of analyzer doesn't support function types yet)
typedef SomeFunc=ReturnType Function(int param, double other);
<<<
typedef SomeFunc = ReturnType Function(
int param, double other);
>>> generic in typedef (skip: published version of analyzer doesn't support function types yet)
typedef Generic = T Function<T>(T param, double other);
<<<
typedef Generic = T Function<T>(
T param, double other);
>>> no return type (skip: published version of analyzer doesn't support function types yet)
typedef SomeFunc = Function();
<<<
typedef SomeFunc = Function();
>>> nested (skip: published version of analyzer doesn't support function types yet)
typedef SomeFunc = Function(int first, Function(int first, bool second, String third) second, String third);
<<<
typedef SomeFunc = Function(
int first,
Function(int first, bool second,
String third)
second,
String third);
>>> without param names (skip: published version of analyzer doesn't support function types yet)
typedef F = Function(int, bool, String);
<<<
typedef F = Function(int, bool, String);
>>> generic (skip: published version of analyzer doesn't support function types yet)
typedef Foo < A ,B>=Function ( A a, B b );
<<<
typedef Foo<A, B> = Function(A a, B b);
>>> generic function (skip: published version of analyzer doesn't support function types yet)
typedef Foo =Function < A ,B > ( A a,B b );
<<<
typedef Foo = Function<A, B>(A a, B b);