rollbar / rollbar-flutter

Rollbar for Dart and Flutter
https://docs.rollbar.com/docs/flutter
MIT License
21 stars 27 forks source link

Surfaced generics-related compilation error #76

Closed matux closed 1 year ago

matux commented 2 years ago

Some code belonging to the features I'm currently working on seem to have surfaced an unrelated generics compilation issue.

$ dart analyze
Analyzing rollbar_common...            1.7s

  error • lib/src/table_set.dart:76:67 • The getter 'id' isn't defined for the type 'E'. Try importing the library that defines 'id', correcting the name to the name of an
          existing getter, or defining a getter or field named 'id'. • undefined_getter
  error • lib/src/table_set.dart:105:18 • The getter 'id' isn't defined for the type 'E'. Try importing the library that defines 'id', correcting the name to the name of an
          existing getter, or defining a getter or field named 'id'. • undefined_getter
  error • lib/src/table_set.dart:132:14 • The getter 'id' isn't defined for the type 'E'. Try importing the library that defines 'id', correcting the name to the name of an
          existing getter, or defining a getter or field named 'id'. • undefined_getter
  error • lib/src/table_set.dart:179:56 • 'E' doesn't conform to the bound 'Persistable<Object>' of the type parameter 'T'. Try using a type that is or is a subclass of
          'Persistable<Object>'. • type_argument_not_matching_bounds

4 issues found.