blob: 139b17fb0b7b720063f3d3d416227cf4c95a47ca [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/patterns/pattern_variable_final_for.dart:8:6: Error: Final variable 'i' might already be assigned at this point.
// (i, _) = r;
// ^
//
import self as self;
import "dart:core" as core;
static method method((core::int, core::int) r) dynamic {
final core::int i;
for (dynamic x in <dynamic>[]) {
{
final synthesized(core::int, core::int) #0#0 = r;
if(!invalid-expression "pkg/front_end/testcases/patterns/pattern_variable_final_for.dart:8:6: Error: Final variable 'i' might already be assigned at this point.
(i, _) = r;
^")
throw{for-error-handling} new core::StateError::•("Pattern matching error");
}
}
}