Skip to content

Failing to generate store with generics #1047

@Andreigr0

Description

@Andreigr0

Generator fails to generate a store when this store uses generics and not imported the type of the generic.
I've created a sample project: https://github.com/Andreigr0/mobx_generator_generics_bug.git

Go to some_store_with_generic_value.dart and try comment the line
import 'package:mobx_generator_generics_bug/main.dart';
this will break generator and it's not obvious since original line would be 16:
GeneratedModelWithGeneric? get someValue => null;
though generator expects line 17:
GeneratedModelWithGeneric<Subtype>? get someValue => null;

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions