Skip to content

Commit

Permalink
Update constants_test.dart based on new constant evaluator changes. (#…
Browse files Browse the repository at this point in the history
…677)

* Update constants_test.dart

Fix the constants test now that the constant evaluator will have new changes and don't resolve with these errors in the test code.

Changes found: https://dart-review.googlesource.com/c/sdk/+/312347

* Eager version bump

---------

Co-authored-by: Nate Bosch <nbosch@google.com>
  • Loading branch information
kallentu and natebosch authored Jul 24, 2023
1 parent f165f00 commit 3caf0aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions source_gen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 1.4.1-wip

## 1.4.0

- Require Dart 3.0
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.4.0
version: 1.4.1-wip
description: >-
Source code generation builders and utilities for the Dart build system
repository: https://github.com/dart-lang/source_gen/tree/master/source_gen
Expand Down
9 changes: 4 additions & 5 deletions source_gen/test/constants_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ void main() {
aString: aString,
aInt: aInt,
aBool: aBool,
aNull: aNull,
nested: const Example(),
)
@Super() // [5]
Expand All @@ -47,10 +46,10 @@ void main() {
@aType // [11]
@aSet // [12]
class Example {
final String aString;
final int aInt;
final bool aBool;
final Example nested;
final String? aString;
final int? aInt;
final bool? aBool;
final Example? nested;
const Example({this.aString, this.aInt, this.aBool, this.nested});
}
Expand Down

0 comments on commit 3caf0aa

Please sign in to comment.