Skip to content

Fix overly specific cast, prepare to release v1.2.4 #621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source_gen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.2.4

* Fix overly-specific cast.

## 1.2.3

* Require `analyzer: '>=4.6.0 <6.0.0'`
Expand Down
2 changes: 1 addition & 1 deletion source_gen/lib/src/constants/reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class _DartObjectConstant extends ConstantReader {
ConstantReader read(String field) {
final reader = peek(field);
if (reader == null) {
assertHasField(objectValue.type?.element2 as ClassElement, field);
assertHasField(objectValue.type!.element2 as InterfaceElement, field);
return const _NullConstant();
}
return reader;
Expand Down
2 changes: 1 addition & 1 deletion source_gen/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: source_gen
version: 1.2.3
version: 1.2.4
description: >-
Source code generation builders and utilities for the Dart build system
repository: https://github.com/dart-lang/source_gen
Expand Down