alexeieleusis / greencat

A port of Redux(https://github.com/reactjs/redux) to Dart, including Redux Thunk(https://github.com/gaearon/redux-thunk) and a simple Logger.
Apache License 2.0
48 stars 4 forks source link

Specify explicit type parameters for middleware in test/greencat_test.dart #22

Closed stereotype441 closed 6 years ago

stereotype441 commented 6 years ago

Currently the correct type parameters are inferred from the context. However, an upcoming Dart 2.0 language change (https://github.com/dart-lang/sdk/issues/32152) will break the connection between callable classes and their corresponding function types, which will prevent type inference from being able to infer these type parameters anymore.

To prepare for the language change, we need to specify the type parameters explicitly.

alexeieleusis commented 6 years ago

Thank you @stereotype441