Skip to content

Commit 3caf0aa

Browse files
kallentunatebosch
andauthored
Update constants_test.dart based on new constant evaluator changes. (#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>
1 parent f165f00 commit 3caf0aa

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

source_gen/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.4.1-wip
2+
13
## 1.4.0
24

35
- Require Dart 3.0

source_gen/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: source_gen
2-
version: 1.4.0
2+
version: 1.4.1-wip
33
description: >-
44
Source code generation builders and utilities for the Dart build system
55
repository: https://github.com/dart-lang/source_gen/tree/master/source_gen

source_gen/test/constants_test.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ void main() {
3535
aString: aString,
3636
aInt: aInt,
3737
aBool: aBool,
38-
aNull: aNull,
3938
nested: const Example(),
4039
)
4140
@Super() // [5]
@@ -47,10 +46,10 @@ void main() {
4746
@aType // [11]
4847
@aSet // [12]
4948
class Example {
50-
final String aString;
51-
final int aInt;
52-
final bool aBool;
53-
final Example nested;
49+
final String? aString;
50+
final int? aInt;
51+
final bool? aBool;
52+
final Example? nested;
5453
5554
const Example({this.aString, this.aInt, this.aBool, this.nested});
5655
}

0 commit comments

Comments
 (0)