We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dce98a2 commit a5683dfCopy full SHA for a5683df
pkg/nnbd_migration/test/api_test.dart
@@ -3040,6 +3040,27 @@ void h(bool b, int? i) {
3040
main() {
3041
h(false, null);
3042
}
3043
+''';
3044
+ await _checkSingleFileChanges(content, expected);
3045
+ }
3046
+
3047
+ @FailingTest(issue: 'https://github.com/dart-lang/sdk/issues/38453')
3048
+ test_unconditional_use_of_field_formal_param_does_not_create_hard_edge() async {
3049
+ var content = '''
3050
+class C {
3051
+ int i;
3052
+ int j;
3053
+ C.one(this.i) : j = i + 1;
3054
+ C.two() : i = null, j = 0;
3055
+}
3056
3057
+ var expected = '''
3058
3059
+ int? i;
3060
3061
+ C.one(this.i) : j = i! + 1;
3062
3063
3064
''';
3065
await _checkSingleFileChanges(content, expected);
3066
0 commit comments