Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Make InfiniteIterable strong mode compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
cbracken committed Sep 7, 2017
2 parents 31c88c0 + c351cf8 commit 530c165
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .analysis_options
@@ -0,0 +1,7 @@
# This file allows you to configure the Dart analyzer.
#
# The commented part below is just for inspiration. Read the guide here:
# https://www.dartlang.org/guides/language/analysis-options

analyzer:
strong-mode: true
3 changes: 2 additions & 1 deletion lib/src/infinite_iterable.dart
Expand Up @@ -29,7 +29,8 @@ abstract class InfiniteIterable<T> extends IterableBase<T> {

bool every(bool f(T element)) => throw new UnsupportedError('every');

bool fold(initialValue, combine(previousValue, T element)) =>
@override
V fold<V>(V initialValue, combine(V previousValue, T element)) =>
throw new UnsupportedError('fold');

void forEach(void f(T element)) => throw new UnsupportedError('forEach');
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,5 +1,5 @@
name: quiver_iterables
version: 1.0.0
version: 1.0.0+1
authors:
- Justin Fagnani <justinfagnani@google.com>
- Yegor Jbanov <yjbanov@google.com>
Expand Down

0 comments on commit 530c165

Please sign in to comment.