-
Notifications
You must be signed in to change notification settings - Fork 33
Problems using generics in mixin with reflectable
0.4.0
#653
Comments
I realize only now that probably this should be a |
There is an issue at google/reflectable.dart#48 about this bug now. Copy/paste from the code quoted above produces text containing some |
You can do
into your 'pubspec.yaml', and try it out with the version of reflectable that contains a fix for the code generation bug (0f06199f91c49601ba1133a0a8f42cd0faa0d4b9). |
ok now it works. tnx. |
@eernstg I'm getting
Doesn't seem to like this area const <Object>[const prefix32.field('created_at')] That's an annotation on one of my models. So not sure what it's doing there. |
Sounds like a new issue, could you please report it as an issue on https://github.com/dart-lang/reflectable/issues? The fact that it is an annotation on one of your models could mean that it is there because there is a reflector which covers that class and includes a |
I think this is resolved now, please re-open if that is not the case |
This is a prosecution of #651 . Using generics on mixin makes
reflectable
mess the generated wrapper code.For example with:
building you get :
but the real problem is that the generated code will contains something that is messed up:
Notably :
And:
The text was updated successfully, but these errors were encountered: