| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/regress/ambiguous_builder_04.dart:14:8: Error: 'x' is already declared in this scope. |
| // void x() { } |
| // ^ |
| // pkg/front_end/testcases/regress/ambiguous_builder_04.dart:6:8: Context: Previous declaration of 'x'. |
| // int? x; |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class Foo extends core::Object { |
| field core::int? x = null; |
| synthetic constructor •() → self::Foo |
| : super core::Object::•() |
| ; |
| method foo() → void { |
| { |
| synthesized core::Iterator<core::int> :sync-for-iterator = core::_GrowableList::_literal1<core::int>(42).{core::Iterable::iterator}{core::Iterator<core::int>}; |
| for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { |
| final core::int #t1 = :sync-for-iterator.{core::Iterator::current}{core::int}; |
| { |
| invalid-expression "pkg/front_end/testcases/regress/ambiguous_builder_04.dart:9:9: Error: Can't use 'x' because it is declared more than once. |
| for(x in [42]) { |
| ^"; |
| core::print(invalid-expression "pkg/front_end/testcases/regress/ambiguous_builder_04.dart:10:13: Error: Can't use 'x' because it is declared more than once. |
| print(x); |
| ^"); |
| } |
| } |
| } |
| } |
| } |