Skip to content

Commit

Permalink
Fix-3490 (#3863)
Browse files Browse the repository at this point in the history
fixes #3490
  • Loading branch information
rrousselGit authored Dec 9, 2024
1 parent c21fee7 commit 459aec7
Show file tree
Hide file tree
Showing 2 changed files with 260 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/riverpod_generator/test/integration/async.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,21 @@ class FamilyClass extends _$FamilyClass {
return '(first: $first, second: $second, third: $third, fourth: $fourth, fifth: $fifth)';
}
}

// Regression test for https://github.com/rrousselGit/riverpod/issues/3490
typedef Regression3490Cb<Model, Sort, Cursor> = Future<(int, Cursor)> Function({
Map<String, dynamic> filters,
Sort? sort,
Cursor? cursor,
});

@riverpod
class Regression3490<Model, Sort, Cursor>
extends _$Regression3490<Model, Sort, Cursor> {
@override
void build({
required String type,
required Regression3490Cb<Model, Sort, Cursor> getData,
String? parentId,
}) {}
}
242 changes: 242 additions & 0 deletions packages/riverpod_generator/test/integration/async.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 459aec7

Please sign in to comment.