| library; |
| import self as self; |
| |
| import "dart:test"; |
| |
| static method main() → dynamic |
| ; |
| |
| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/nnbd/platform_nonnullable_fields/patch_lib2.dart:34:14: Error: Field '_staticField' should be initialized because its type 'int' doesn't allow null. |
| // static int _staticField; |
| // ^^^^^^^^^^^^ |
| // |
| import self as self2; |
| import "dart:_internal" as _in; |
| import "dart:core" as core; |
| |
| import "dart:_internal"; |
| |
| part patch_lib2.dart; |
| @_in::patch |
| class Class1 extends core::Object { |
| field core::int _field /* from org-dartlang-testcase:///patch_lib2.dart */; |
| static field core::int _staticField /* from org-dartlang-testcase:///patch_lib2.dart */; |
| synthetic constructor •() → self2::Class1 |
| ; |
| } |
| @_in::patch |
| class Class2 extends core::Object { |
| field core::int _field /* from org-dartlang-testcase:///patch_lib2.dart */; |
| constructor constructor2(core::int _field) → self2::Class2 |
| ; |
| constructor constructor1() → self2::Class2 |
| ; |
| } |
| |
| |
| Extra constant evaluation status: |
| Evaluated: FileUriExpression @ org-dartlang-testcase:///patch_lib2.dart:30:1 -> InstanceConstant(const _Patch{}) |
| Evaluated: FileUriExpression @ org-dartlang-testcase:///patch_lib2.dart:37:1 -> InstanceConstant(const _Patch{}) |
| Extra constant evaluation: evaluated: 2, effectively constant: 2 |