-
Notifications
You must be signed in to change notification settings - Fork 13
Annotate the type of 'variables' in class All and class None #5
Conversation
that we do not run into dart-lang/sdk#32412
lib/src/all.dart
Outdated
@@ -6,7 +6,7 @@ import '../boolean_selector.dart'; | |||
|
|||
/// A selector that matches all inputs. | |||
class All implements BooleanSelector { | |||
final variables = const []; | |||
final List<String> variables = const []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this go on the right -> <String>[]
?
pubspec.yaml
Outdated
@@ -1,5 +1,5 @@ | |||
name: boolean_selector | |||
version: 1.0.3-dev | |||
version: 1.0.4-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think this is needed, since 1.0.3
has not been released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this should just be 1.0.3
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add comments to the variables indicating why they're over-specified and linking to the tracking SDK issue.
CHANGELOG.md
Outdated
@@ -1,3 +1,7 @@ | |||
## 1.0.3 | |||
|
|||
* Annotate the type of 'variables' in class All and class None. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd write "Work around a common front-end inference bug." The changelog is intended for downstream users, and as far as they're concerned the only change here is that this now works with the CFE.
pubspec.yaml
Outdated
@@ -1,5 +1,5 @@ | |||
name: boolean_selector | |||
version: 1.0.3-dev | |||
version: 1.0.4-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this should just be 1.0.3
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made changes myself since @a-siva is OOO today.
Thanks |
Annotate the type of All.variables and None.variables to work around dart-lang/sdkdart-lang/boolean_selector#32412.
Annotate the type of 'variables' in class All and class None to ensure that we do not run into dart-lang/sdk#32412