blob: f2bb6a46616c50b3de57e7125bc88423b96f152e [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue54267a.dart:8:3: Error: Expected an identifier, but got 'final'.
// Try inserting an identifier before 'final'.
// final int value;
// ^^^^^
//
// pkg/front_end/testcases/general/issue54267a.dart:8:3: Error: Expected '}' before this.
// final int value;
// ^^^^^
//
// pkg/front_end/testcases/general/issue54267a.dart:6:4: Error: Too many positional arguments: 2 allowed, but 3 found.
// Try removing the extra positional arguments.
// a(0),
// ^
// pkg/front_end/testcases/general/issue54267a.dart:5:6: Context: The class 'A' has a constructor that takes no arguments.
// enum A {
// ^
//
// pkg/front_end/testcases/general/issue54267a.dart:7:4: Error: Too many positional arguments: 2 allowed, but 3 found.
// Try removing the extra positional arguments.
// b(1),
// ^
// pkg/front_end/testcases/general/issue54267a.dart:5:6: Context: The class 'A' has a constructor that takes no arguments.
// enum A {
// ^
//
import self as self;
import "dart:core" as core;
class A extends core::_Enum /*isEnum*/ {
static const field core::List<self::A> values = invalid-expression "pkg/front_end/testcases/general/issue54267a.dart:6:4: Error: Too many positional arguments: 2 allowed, but 3 found.
Try removing the extra positional arguments.
a(0),
^";
enum-element static const field invalid-type a = invalid-expression "pkg/front_end/testcases/general/issue54267a.dart:6:4: Error: Too many positional arguments: 2 allowed, but 3 found.
Try removing the extra positional arguments.
a(0),
^";
enum-element static const field invalid-type b = invalid-expression "pkg/front_end/testcases/general/issue54267a.dart:7:4: Error: Too many positional arguments: 2 allowed, but 3 found.
Try removing the extra positional arguments.
b(1),
^";
const synthetic constructor •(core::int #index, core::String #name) → self::A
: super core::_Enum::•(#index, #name)
;
method _enumToString() core::String
return "A.${this.{core::_Enum::_name}{core::String}}";
}
static method fn(self::A a) core::int
return block {
core::int #t1;
#L1:
switch(a) /* isExplicitlyExhaustive, self::A */ {
#L2:
case invalid-expression "pkg/front_end/testcases/general/issue54267a.dart:6:4: Error: Too many positional arguments: 2 allowed, but 3 found.
Try removing the extra positional arguments.
a(0),
^":
{
#t1 = 0;
break #L1;
}
#L3:
case invalid-expression "pkg/front_end/testcases/general/issue54267a.dart:7:4: Error: Too many positional arguments: 2 allowed, but 3 found.
Try removing the extra positional arguments.
b(1),
^":
{
#t1 = 1;
break #L1;
}
}
} =>#t1;