| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/constants/unused_non_const.dart:12:27: Error: Not a constant expression. |
| // const _ = {if (false) nonConstTopLevel}; |
| // ^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/general/constants/unused_non_const.dart:13:27: Error: Not a constant expression. |
| // const _ = {if (false) nonConstField}; |
| // ^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/general/constants/unused_non_const.dart:14:27: Error: Not a constant expression. |
| // const _ = {if (false) nonConstParameter}; |
| // ^^^^^^^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/general/constants/unused_non_const.dart:15:27: Error: Not a constant expression. |
| // const _ = {if (false) nonConstLocal}; |
| // ^^^^^^^^^^^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class Class extends core::Object { |
| static final field core::int nonConstField = 1; |
| synthetic constructor •() → self::Class |
| : super core::Object::•() |
| ; |
| method test(final core::int nonConstParameter) → void { |
| final core::int nonConstLocal = 2; |
| } |
| } |
| static final field core::int nonConstTopLevel = 0; |