[cfe] Use wrapInProblem instead of buildProblem in inference

Change-Id: I51fe495d162e26ac7cd97629272170c85cafea36
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208642
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
This commit is contained in:
Johnni Winther 2021-08-04 10:07:24 +00:00 committed by commit-bot@chromium.org
parent e6e25ac7b0
commit e7638e8e96
209 changed files with 1500 additions and 869 deletions

View file

@ -119,7 +119,22 @@ class InferenceVisitor
@override
ExpressionInferenceResult visitDynamicGet(
DynamicGet node, DartType typeContext) {
return _unhandledExpression(node, typeContext);
// The node has already been inferred, for instance as part of a for-in
// loop, so just compute the result type.
DartType resultType;
switch (node.kind) {
case DynamicAccessKind.Dynamic:
resultType = const DynamicType();
break;
case DynamicAccessKind.Never:
resultType = NeverType.fromNullability(inferrer.library.nonNullable);
break;
case DynamicAccessKind.Invalid:
case DynamicAccessKind.Unresolved:
resultType = const InvalidType();
break;
}
return new ExpressionInferenceResult(resultType, node);
}
@override

View file

@ -2547,6 +2547,14 @@ class IndexGet extends InternalExpression {
String toString() {
return "IndexGet(${toStringInternal()})";
}
@override
void toTextInternal(AstPrinter printer) {
printer.writeExpression(receiver);
printer.write('[');
printer.writeExpression(index);
printer.write(']');
}
}
/// Internal expression representing an index set expression.
@ -2646,6 +2654,15 @@ class IndexSet extends InternalExpression {
String toString() {
return "IndexSet(${toStringInternal()})";
}
@override
void toTextInternal(AstPrinter printer) {
printer.writeExpression(receiver);
printer.write('[');
printer.writeExpression(index);
printer.write('] = ');
printer.writeExpression(value);
}
}
/// Internal expression representing a super index set expression.

View file

@ -2355,7 +2355,9 @@ class TypeInferrerImpl implements TypeInferrer {
if (named.length == 2) {
if (named[0].name == named[1].name) {
String name = named[1].name;
Expression error = helper!.buildProblem(
Expression error = helper!.wrapInProblem(
_createDuplicateExpression(
named[0].fileOffset, named[0].value, named[1].value),
templateDuplicatedNamedArgument.withArguments(name),
named[1].fileOffset,
name.length);
@ -2373,7 +2375,9 @@ class TypeInferrerImpl implements TypeInferrer {
if (seenNames.containsKey(name)) {
hasProblem = true;
NamedExpression prevNamedExpression = seenNames[name]!;
prevNamedExpression.value = helper!.buildProblem(
prevNamedExpression.value = helper!.wrapInProblem(
_createDuplicateExpression(prevNamedExpression.fileOffset,
prevNamedExpression.value, expression.value),
templateDuplicatedNamedArgument.withArguments(name),
expression.fileOffset,
name.length)
@ -4178,11 +4182,60 @@ class TypeInferrerImpl implements TypeInferrer {
}
}
/// Creates an expression the represents the invalid invocation of [name] on
/// [receiver] with [arguments].
///
/// This is used to ensure that subexpressions of invalid invocations are part
/// of the AST using `helper.wrapInProblem`.
Expression _createInvalidInvocation(
int fileOffset, Expression receiver, Name name, Arguments arguments) {
return new DynamicInvocation(
DynamicAccessKind.Unresolved, receiver, name, arguments)
..fileOffset = fileOffset;
}
/// Creates an expression the represents the invalid get of [name] on
/// [receiver].
///
/// This is used to ensure that subexpressions of invalid gets are part
/// of the AST using `helper.wrapInProblem`.
Expression _createInvalidGet(int fileOffset, Expression receiver, Name name) {
return new DynamicGet(DynamicAccessKind.Unresolved, receiver, name)
..fileOffset = fileOffset;
}
/// Creates an expression the represents the invalid set of [name] on
/// [receiver] with [value].
///
/// This is used to ensure that subexpressions of invalid gets are part
/// of the AST using `helper.wrapInProblem`.
Expression _createInvalidSet(
int fileOffset, Expression receiver, Name name, Expression value) {
return new DynamicSet(DynamicAccessKind.Unresolved, receiver, name, value)
..fileOffset = fileOffset;
}
/// Creates an expression the represents a duplicate expression occurring
/// for instance as the [first] and [second] occurrence of named arguments
/// with the same name.
///
/// This is used to ensure that subexpressions of duplicate expressions are
/// part of the AST using `helper.wrapInProblem`.
Expression _createDuplicateExpression(
int fileOffset, Expression first, Expression second) {
return new BlockExpression(
new Block([new ExpressionStatement(first)..fileOffset = fileOffset])
..fileOffset = fileOffset,
second)
..fileOffset = fileOffset;
}
Expression _reportMissingOrAmbiguousMember(
int fileOffset,
int length,
DartType receiverType,
Name name,
Expression wrappedExpression,
List<ExtensionAccessCandidate>? extensionAccessCandidates,
Template<Message Function(String, DartType, bool)> missingTemplate,
Template<Message Function(String, DartType, bool)> ambiguousTemplate) {
@ -4199,7 +4252,8 @@ class TypeInferrerImpl implements TypeInferrer {
.toList();
template = ambiguousTemplate;
}
return helper!.buildProblem(
return helper!.wrapInProblem(
wrappedExpression,
template.withArguments(name.text, resolveTypeParameter(receiverType),
isNonNullableByDefault),
fileOffset,
@ -4219,7 +4273,8 @@ class TypeInferrerImpl implements TypeInferrer {
.createMethodInvocation(fileOffset, receiver, name, arguments);
} else if (implicitInvocationPropertyName != null) {
assert(extensionAccessCandidates == null);
return helper!.buildProblem(
return helper!.wrapInProblem(
_createInvalidInvocation(fileOffset, receiver, name, arguments),
templateInvokeNonFunction
.withArguments(implicitInvocationPropertyName.text),
fileOffset,
@ -4230,6 +4285,7 @@ class TypeInferrerImpl implements TypeInferrer {
isExpressionInvocation ? noLength : name.text.length,
receiverType,
name,
_createInvalidInvocation(fileOffset, receiver, name, arguments),
extensionAccessCandidates,
receiverType is ExtensionType
? templateUndefinedExtensionMethod
@ -4256,6 +4312,7 @@ class TypeInferrerImpl implements TypeInferrer {
propertyName.text.length,
receiverType,
propertyName,
_createInvalidGet(fileOffset, receiver, propertyName),
extensionAccessCandidates,
templateMissing,
templateAmbiguousExtensionProperty);
@ -4284,6 +4341,7 @@ class TypeInferrerImpl implements TypeInferrer {
propertyName.text.length,
receiverType,
propertyName,
_createInvalidSet(fileOffset, receiver, propertyName, value),
extensionAccessCandidates,
templateMissing,
templateAmbiguousExtensionProperty);
@ -4307,6 +4365,8 @@ class TypeInferrerImpl implements TypeInferrer {
noLength,
receiverType,
indexGetName,
_createInvalidInvocation(fileOffset, receiver, indexGetName,
new Arguments([index])..fileOffset = fileOffset),
extensionAccessCandidates,
templateMissing,
templateAmbiguousExtensionOperator);
@ -4334,6 +4394,8 @@ class TypeInferrerImpl implements TypeInferrer {
noLength,
receiverType,
indexSetName,
_createInvalidInvocation(fileOffset, receiver, indexSetName,
new Arguments([index, value])..fileOffset = fileOffset),
extensionAccessCandidates,
templateMissing,
templateAmbiguousExtensionOperator);
@ -4359,6 +4421,8 @@ class TypeInferrerImpl implements TypeInferrer {
binaryName.text.length,
leftType,
binaryName,
_createInvalidInvocation(fileOffset, left, binaryName,
new Arguments([right])..fileOffset = fileOffset),
extensionAccessCandidates,
templateMissing,
templateAmbiguousExtensionOperator);
@ -4383,6 +4447,8 @@ class TypeInferrerImpl implements TypeInferrer {
unaryName == unaryMinusName ? 1 : unaryName.text.length,
expressionType,
unaryName,
_createInvalidInvocation(fileOffset, expression, unaryName,
new Arguments([])..fileOffset = fileOffset),
extensionAccessCandidates,
templateMissing,
templateAmbiguousExtensionOperator);

View file

@ -657,9 +657,18 @@ void _testStaticPostIncDec() {}
void _testSuperPostIncDec() {}
void _testIndexGet() {}
void _testIndexGet() {
testExpression(new IndexGet(new IntLiteral(0), new IntLiteral(1)), '''
0[1]''');
}
void _testIndexSet() {}
void _testIndexSet() {
testExpression(
new IndexSet(new IntLiteral(0), new IntLiteral(1), new IntLiteral(2),
forEffect: false),
'''
0[1] = 2''');
}
void _testSuperIndexSet() {}

View file

@ -98,7 +98,7 @@ static method invalidPropertyFn() → core::int {
- 'List' is from 'dart:core'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'invalidProperty'.
return x.invalidProperty;
^^^^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::int;
^^^^^^^^^^^^^^^" in (#C4){<unresolved>}.invalidProperty as{TypeError,ForDynamic,ForNonNullableByDefault} core::int;
}
static method getWithIndexExceptionFn() → core::int {
return (#C5).{core::List::[]}(1){(core::int) → core::int};

View file

@ -98,7 +98,7 @@ static method invalidPropertyFn() → core::int {
- 'List' is from 'dart:core'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'invalidProperty'.
return x.invalidProperty;
^^^^^^^^^^^^^^^";
^^^^^^^^^^^^^^^" in (#C4){<unresolved>}.invalidProperty;
}
static method getWithIndexExceptionFn() → core::int {
return (#C5).{core::List::[]}(1){(core::int) → core::int};

View file

@ -98,7 +98,7 @@ static method invalidPropertyFn() → core::int {
- 'List' is from 'dart:core'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'invalidProperty'.
return x.invalidProperty;
^^^^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::int;
^^^^^^^^^^^^^^^" in (#C4){<unresolved>}.invalidProperty as{TypeError,ForDynamic,ForNonNullableByDefault} core::int;
}
static method getWithIndexExceptionFn() → core::int {
return (#C5).{core::List::[]}(1){(core::int) → core::int};

View file

@ -98,7 +98,7 @@ static method invalidPropertyFn() → core::int {
- 'List' is from 'dart:core'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'invalidProperty'.
return x.invalidProperty;
^^^^^^^^^^^^^^^";
^^^^^^^^^^^^^^^" in (#C4){<unresolved>}.invalidProperty;
}
static method getWithIndexExceptionFn() → core::int {
return (#C5).{core::List::[]}(1){(core::int) → core::int};

View file

@ -55,24 +55,24 @@ static method test(self::A a, self::E e, self::ET et) → dynamic {
- 'A' is from 'pkg/front_end/testcases/extension_types/simple_getter_resolution.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'baz'.
a.baz; // Error.
^^^";
^^^" in a{<unresolved>}.baz;
invalid-expression "pkg/front_end/testcases/extension_types/simple_getter_resolution.dart:22:5: Error: The getter 'foo' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'foo'.
e.foo; // Error.
^^^";
^^^" in e{<unresolved>}.foo;
self::E|get#bar(e);
invalid-expression "pkg/front_end/testcases/extension_types/simple_getter_resolution.dart:24:5: Error: The getter 'baz' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'baz'.
e.baz; // Error.
^^^";
^^^" in e{<unresolved>}.baz;
invalid-expression "pkg/front_end/testcases/extension_types/simple_getter_resolution.dart:26:6: Error: The getter 'foo' isn't defined for the extension 'ET'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'foo'.
et.foo; // Error.
^^^";
^^^" in et{<unresolved>}.foo;
invalid-expression "pkg/front_end/testcases/extension_types/simple_getter_resolution.dart:27:6: Error: The getter 'bar' isn't defined for the extension 'ET'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bar'.
et.bar; // Error.
^^^";
^^^" in et{<unresolved>}.bar;
self::ET|get#baz(et);
}
static method main() → dynamic {}

View file

@ -55,24 +55,24 @@ static method test(self::A a, self::E e, self::ET et) → dynamic {
- 'A' is from 'pkg/front_end/testcases/extension_types/simple_getter_resolution.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'baz'.
a.baz; // Error.
^^^";
^^^" in a{<unresolved>}.baz;
invalid-expression "pkg/front_end/testcases/extension_types/simple_getter_resolution.dart:22:5: Error: The getter 'foo' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'foo'.
e.foo; // Error.
^^^";
^^^" in e{<unresolved>}.foo;
self::E|get#bar(e);
invalid-expression "pkg/front_end/testcases/extension_types/simple_getter_resolution.dart:24:5: Error: The getter 'baz' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'baz'.
e.baz; // Error.
^^^";
^^^" in e{<unresolved>}.baz;
invalid-expression "pkg/front_end/testcases/extension_types/simple_getter_resolution.dart:26:6: Error: The getter 'foo' isn't defined for the extension 'ET'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'foo'.
et.foo; // Error.
^^^";
^^^" in et{<unresolved>}.foo;
invalid-expression "pkg/front_end/testcases/extension_types/simple_getter_resolution.dart:27:6: Error: The getter 'bar' isn't defined for the extension 'ET'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bar'.
et.bar; // Error.
^^^";
^^^" in et{<unresolved>}.bar;
self::ET|get#baz(et);
}
static method main() → dynamic {}

View file

@ -60,24 +60,24 @@ static method test(self::A a, self::E e, self::ET et) → dynamic {
- 'A' is from 'pkg/front_end/testcases/extension_types/simple_method_resolution.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'baz'.
a.baz(); // Error.
^^^";
^^^" in a{<unresolved>}.baz();
invalid-expression "pkg/front_end/testcases/extension_types/simple_method_resolution.dart:22:5: Error: The method 'foo' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing method, or defining a method name 'foo'.
e.foo(); // Error.
^^^";
^^^" in e{<unresolved>}.foo();
self::E|bar(e);
invalid-expression "pkg/front_end/testcases/extension_types/simple_method_resolution.dart:24:5: Error: The method 'baz' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing method, or defining a method name 'baz'.
e.baz(); // Error.
^^^";
^^^" in e{<unresolved>}.baz();
invalid-expression "pkg/front_end/testcases/extension_types/simple_method_resolution.dart:26:6: Error: The method 'foo' isn't defined for the extension 'ET'.
Try correcting the name to the name of an existing method, or defining a method name 'foo'.
et.foo(); // Error.
^^^";
^^^" in et{<unresolved>}.foo();
invalid-expression "pkg/front_end/testcases/extension_types/simple_method_resolution.dart:27:6: Error: The method 'bar' isn't defined for the extension 'ET'.
Try correcting the name to the name of an existing method, or defining a method name 'bar'.
et.bar(); // Error.
^^^";
^^^" in et{<unresolved>}.bar();
self::ET|baz(et);
}
static method main() → dynamic {}

View file

@ -60,24 +60,24 @@ static method test(self::A a, self::E e, self::ET et) → dynamic {
- 'A' is from 'pkg/front_end/testcases/extension_types/simple_method_resolution.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'baz'.
a.baz(); // Error.
^^^";
^^^" in a{<unresolved>}.baz();
invalid-expression "pkg/front_end/testcases/extension_types/simple_method_resolution.dart:22:5: Error: The method 'foo' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing method, or defining a method name 'foo'.
e.foo(); // Error.
^^^";
^^^" in e{<unresolved>}.foo();
self::E|bar(e);
invalid-expression "pkg/front_end/testcases/extension_types/simple_method_resolution.dart:24:5: Error: The method 'baz' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing method, or defining a method name 'baz'.
e.baz(); // Error.
^^^";
^^^" in e{<unresolved>}.baz();
invalid-expression "pkg/front_end/testcases/extension_types/simple_method_resolution.dart:26:6: Error: The method 'foo' isn't defined for the extension 'ET'.
Try correcting the name to the name of an existing method, or defining a method name 'foo'.
et.foo(); // Error.
^^^";
^^^" in et{<unresolved>}.foo();
invalid-expression "pkg/front_end/testcases/extension_types/simple_method_resolution.dart:27:6: Error: The method 'bar' isn't defined for the extension 'ET'.
Try correcting the name to the name of an existing method, or defining a method name 'bar'.
et.bar(); // Error.
^^^";
^^^" in et{<unresolved>}.bar();
self::ET|baz(et);
}
static method main() → dynamic {}

View file

@ -93,48 +93,48 @@ static method test(self::A a, self::E e, self::ET et) → dynamic {
- 'A' is from 'pkg/front_end/testcases/extension_types/simple_operator_resolution.dart'.
Try correcting the operator to an existing operator, or defining a '~/' operator.
a ~/ \"foobar\"; // Error.
^^";
^^" in a{<unresolved>}.~/("foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:28:5: Error: The operator '*' isn't defined for the extension 'E'.
Try correcting the operator to an existing operator, or defining a '*' operator.
e * \"foobar\"; // Error.
^";
^" in e{<unresolved>}.*("foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:29:4: Error: The operator '[]' isn't defined for the extension 'E'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
e[0]; // Error.
^";
^" in e{<unresolved>}.[](0);
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:30:4: Error: The operator '[]=' isn't defined for the extension 'E'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
e[0] = \"foobar\"; // Error.
^";
^" in e{<unresolved>}.[]=(0, "foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:31:3: Error: The operator 'unary-' isn't defined for the extension 'E'.
Try correcting the operator to an existing operator, or defining a 'unary-' operator.
-e; // Error.
^";
^" in e{<unresolved>}.unary-();
self::E|+(e, "foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:33:5: Error: The operator '~/' isn't defined for the extension 'E'.
Try correcting the operator to an existing operator, or defining a '~/' operator.
e ~/ \"foobar\"; // Error.
^^";
^^" in e{<unresolved>}.~/("foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:35:6: Error: The operator '*' isn't defined for the extension 'ET'.
Try correcting the operator to an existing operator, or defining a '*' operator.
et * \"foobar\"; // Error.
^";
^" in et{<unresolved>}.*("foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:36:5: Error: The operator '[]' isn't defined for the extension 'ET'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
et[0]; // Error.
^";
^" in et{<unresolved>}.[](0);
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:37:5: Error: The operator '[]=' isn't defined for the extension 'ET'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
et[0] = \"foobar\"; // Error.
^";
^" in et{<unresolved>}.[]=(0, "foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:38:3: Error: The operator 'unary-' isn't defined for the extension 'ET'.
Try correcting the operator to an existing operator, or defining a 'unary-' operator.
-et; // Error.
^";
^" in et{<unresolved>}.unary-();
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:39:6: Error: The operator '+' isn't defined for the extension 'ET'.
Try correcting the operator to an existing operator, or defining a '+' operator.
et + \"foobar\"; // Error.
^";
^" in et{<unresolved>}.+("foobar");
self::ET|~/(et, "foobar");
}
static method main() → dynamic {}

View file

@ -93,48 +93,48 @@ static method test(self::A a, self::E e, self::ET et) → dynamic {
- 'A' is from 'pkg/front_end/testcases/extension_types/simple_operator_resolution.dart'.
Try correcting the operator to an existing operator, or defining a '~/' operator.
a ~/ \"foobar\"; // Error.
^^";
^^" in a{<unresolved>}.~/("foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:28:5: Error: The operator '*' isn't defined for the extension 'E'.
Try correcting the operator to an existing operator, or defining a '*' operator.
e * \"foobar\"; // Error.
^";
^" in e{<unresolved>}.*("foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:29:4: Error: The operator '[]' isn't defined for the extension 'E'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
e[0]; // Error.
^";
^" in e{<unresolved>}.[](0);
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:30:4: Error: The operator '[]=' isn't defined for the extension 'E'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
e[0] = \"foobar\"; // Error.
^";
^" in e{<unresolved>}.[]=(0, "foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:31:3: Error: The operator 'unary-' isn't defined for the extension 'E'.
Try correcting the operator to an existing operator, or defining a 'unary-' operator.
-e; // Error.
^";
^" in e{<unresolved>}.unary-();
self::E|+(e, "foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:33:5: Error: The operator '~/' isn't defined for the extension 'E'.
Try correcting the operator to an existing operator, or defining a '~/' operator.
e ~/ \"foobar\"; // Error.
^^";
^^" in e{<unresolved>}.~/("foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:35:6: Error: The operator '*' isn't defined for the extension 'ET'.
Try correcting the operator to an existing operator, or defining a '*' operator.
et * \"foobar\"; // Error.
^";
^" in et{<unresolved>}.*("foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:36:5: Error: The operator '[]' isn't defined for the extension 'ET'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
et[0]; // Error.
^";
^" in et{<unresolved>}.[](0);
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:37:5: Error: The operator '[]=' isn't defined for the extension 'ET'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
et[0] = \"foobar\"; // Error.
^";
^" in et{<unresolved>}.[]=(0, "foobar");
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:38:3: Error: The operator 'unary-' isn't defined for the extension 'ET'.
Try correcting the operator to an existing operator, or defining a 'unary-' operator.
-et; // Error.
^";
^" in et{<unresolved>}.unary-();
invalid-expression "pkg/front_end/testcases/extension_types/simple_operator_resolution.dart:39:6: Error: The operator '+' isn't defined for the extension 'ET'.
Try correcting the operator to an existing operator, or defining a '+' operator.
et + \"foobar\"; // Error.
^";
^" in et{<unresolved>}.+("foobar");
self::ET|~/(et, "foobar");
}
static method main() → dynamic {}

View file

@ -54,16 +54,16 @@ static method test(self::A a, self::E e) → dynamic {
- 'A' is from 'pkg/front_end/testcases/extension_types/simple_setter_resolution.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'baz'.
a.baz = 42; // Error.
^^^";
^^^" in a{<unresolved>}.baz = 42;
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:22:5: Error: The setter 'foo' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'foo'.
e.foo = 42; // Error.
^^^";
^^^" in e{<unresolved>}.foo = 42;
self::E|set#bar(e, 42);
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:24:5: Error: The setter 'baz' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'baz'.
e.baz = 42; // Error.
^^^";
^^^" in e{<unresolved>}.baz = 42;
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:26:3: Error: Getter not found: 'et'.
et.foo = 42; // Error.
^^"{<invalid>}.foo = 42;

View file

@ -54,16 +54,16 @@ static method test(self::A a, self::E e) → dynamic {
- 'A' is from 'pkg/front_end/testcases/extension_types/simple_setter_resolution.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'baz'.
a.baz = 42; // Error.
^^^";
^^^" in a{<unresolved>}.baz = 42;
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:22:5: Error: The setter 'foo' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'foo'.
e.foo = 42; // Error.
^^^";
^^^" in e{<unresolved>}.foo = 42;
self::E|set#bar(e, 42);
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:24:5: Error: The setter 'baz' isn't defined for the extension 'E'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'baz'.
e.baz = 42; // Error.
^^^";
^^^" in e{<unresolved>}.baz = 42;
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:26:3: Error: Getter not found: 'et'.
et.foo = 42; // Error.
^^"{<invalid>}.foo = 42;

View file

@ -191,40 +191,40 @@ static method test1(self::E1 e1) → dynamic {
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:8:6: Error: The method 'ceil' isn't defined for the extension 'E1'.
Try correcting the name to the name of an existing method, or defining a method name 'ceil'.
e1.ceil(); // Ok.
^^^^";
^^^^" in e1{<unresolved>}.ceil();
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:9:3: Error: Getter not found: 'e2'.
e2.floor(); // Ok.
^^"{dynamic}.floor();
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:10:6: Error: The getter 'isEven' isn't defined for the extension 'E1'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'.
e1.isEven; // Error.
^^^^^^";
^^^^^^" in e1{<unresolved>}.isEven;
}
static method ceil() → invalid-type {}
static method test2(self::E2 e2) → dynamic {
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:16:6: Error: The method 'ceil' isn't defined for the extension 'E2'.
Try correcting the name to the name of an existing method, or defining a method name 'ceil'.
e2.ceil(); // Error.
^^^^";
^^^^" in e2{<unresolved>}.ceil();
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:17:6: Error: The method 'floor' isn't defined for the extension 'E2'.
Try correcting the name to the name of an existing method, or defining a method name 'floor'.
e2.floor(); // Ok.
^^^^^";
^^^^^" in e2{<unresolved>}.floor();
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:18:6: Error: The getter 'isEven' isn't defined for the extension 'E2'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'.
e2.isEven; // Error.
^^^^^^";
^^^^^^" in e2{<unresolved>}.isEven;
}
static method isEven() → invalid-type {}
static method test3(self::E3 e3) → dynamic {
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:24:6: Error: The getter 'isOdd' isn't defined for the extension 'E3'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isOdd'.
e3.isOdd; // Ok.
^^^^^";
^^^^^" in e3{<unresolved>}.isOdd;
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:25:6: Error: The getter 'isEven' isn't defined for the extension 'E3'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'.
e3.isEven; // Error.
^^^^^^";
^^^^^^" in e3{<unresolved>}.isEven;
}
static method floor() → invalid-type {
core::int get;
@ -238,19 +238,19 @@ static method test() → dynamic {
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:34:5: Error: The getter 'twice' isn't defined for the extension 'MyInt'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'twice'.
m.twice; // OK, in the extension type.
^^^^^";
^^^^^" in m{<unresolved>}.twice;
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:35:5: Error: The getter 'isEven' isn't defined for the extension 'MyInt'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'.
m.isEven; // OK, a shown instance member.
^^^^^^";
^^^^^^" in m{<unresolved>}.isEven;
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:36:5: Error: The method 'ceil' isn't defined for the extension 'MyInt'.
Try correcting the name to the name of an existing method, or defining a method name 'ceil'.
m.ceil(); // OK, a shown instance member.
^^^^";
^^^^" in m{<unresolved>}.ceil();
m.{core::Object::toString}(){() → core::String};
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:38:5: Error: The method 'floor' isn't defined for the extension 'MyInt'.
Try correcting the name to the name of an existing method, or defining a method name 'floor'.
m.floor(); // Error, hidden.
^^^^^";
^^^^^" in m{<unresolved>}.floor();
}
static method main() → dynamic {}

View file

@ -191,40 +191,40 @@ static method test1(self::E1 e1) → dynamic {
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:8:6: Error: The method 'ceil' isn't defined for the extension 'E1'.
Try correcting the name to the name of an existing method, or defining a method name 'ceil'.
e1.ceil(); // Ok.
^^^^";
^^^^" in e1{<unresolved>}.ceil();
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:9:3: Error: Getter not found: 'e2'.
e2.floor(); // Ok.
^^"{dynamic}.floor();
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:10:6: Error: The getter 'isEven' isn't defined for the extension 'E1'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'.
e1.isEven; // Error.
^^^^^^";
^^^^^^" in e1{<unresolved>}.isEven;
}
static method ceil() → invalid-type {}
static method test2(self::E2 e2) → dynamic {
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:16:6: Error: The method 'ceil' isn't defined for the extension 'E2'.
Try correcting the name to the name of an existing method, or defining a method name 'ceil'.
e2.ceil(); // Error.
^^^^";
^^^^" in e2{<unresolved>}.ceil();
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:17:6: Error: The method 'floor' isn't defined for the extension 'E2'.
Try correcting the name to the name of an existing method, or defining a method name 'floor'.
e2.floor(); // Ok.
^^^^^";
^^^^^" in e2{<unresolved>}.floor();
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:18:6: Error: The getter 'isEven' isn't defined for the extension 'E2'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'.
e2.isEven; // Error.
^^^^^^";
^^^^^^" in e2{<unresolved>}.isEven;
}
static method isEven() → invalid-type {}
static method test3(self::E3 e3) → dynamic {
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:24:6: Error: The getter 'isOdd' isn't defined for the extension 'E3'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isOdd'.
e3.isOdd; // Ok.
^^^^^";
^^^^^" in e3{<unresolved>}.isOdd;
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:25:6: Error: The getter 'isEven' isn't defined for the extension 'E3'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'.
e3.isEven; // Error.
^^^^^^";
^^^^^^" in e3{<unresolved>}.isEven;
}
static method floor() → invalid-type {
core::int get;
@ -238,19 +238,19 @@ static method test() → dynamic {
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:34:5: Error: The getter 'twice' isn't defined for the extension 'MyInt'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'twice'.
m.twice; // OK, in the extension type.
^^^^^";
^^^^^" in m{<unresolved>}.twice;
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:35:5: Error: The getter 'isEven' isn't defined for the extension 'MyInt'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'.
m.isEven; // OK, a shown instance member.
^^^^^^";
^^^^^^" in m{<unresolved>}.isEven;
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:36:5: Error: The method 'ceil' isn't defined for the extension 'MyInt'.
Try correcting the name to the name of an existing method, or defining a method name 'ceil'.
m.ceil(); // OK, a shown instance member.
^^^^";
^^^^" in m{<unresolved>}.ceil();
m.{core::Object::toString}(){() → core::String};
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:38:5: Error: The method 'floor' isn't defined for the extension 'MyInt'.
Try correcting the name to the name of an existing method, or defining a method name 'floor'.
m.floor(); // Error, hidden.
^^^^^";
^^^^^" in m{<unresolved>}.floor();
}
static method main() → dynamic {}

View file

@ -215,61 +215,61 @@ static method errors(self::C* c) → dynamic {
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.method();
^^^^^^";
^^^^^^" in c{<unresolved>}.method();
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:29:5: Error: The property 'method' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.method;
^^^^^^";
^^^^^^" in c{<unresolved>}.method;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:30:5: Error: The property 'getter' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.getter;
^^^^^^";
^^^^^^" in c{<unresolved>}.getter;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:31:5: Error: The property 'setter' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.setter;
^^^^^^";
^^^^^^" in c{<unresolved>}.setter;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:32:5: Error: The property 'getter' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.getter = 42;
^^^^^^";
^^^^^^" in c{<unresolved>}.getter = 42;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:33:5: Error: The property 'setter' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.setter = 42;
^^^^^^";
^^^^^^" in c{<unresolved>}.setter = 42;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:34:5: Error: The property 'property' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.property;
^^^^^^^^";
^^^^^^^^" in c{<unresolved>}.property;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:35:5: Error: The property 'property' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.property = 42;
^^^^^^^^";
^^^^^^^^" in c{<unresolved>}.property = 42;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:36:5: Error: The operator '+' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c + 0;
^";
^" in c{<unresolved>}.+(0);
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:37:3: Error: The operator 'unary-' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
-c;
^";
^" in c{<unresolved>}.unary-();
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:38:4: Error: The operator '[]' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c[42];
^";
^" in c{<unresolved>}.[](42);
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:39:4: Error: The operator '[]=' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c[42] = 0;
^";
^" in c{<unresolved>}.[]=(42, 0);
}
static method main() → dynamic {}

View file

@ -215,61 +215,61 @@ static method errors(self::C* c) → dynamic {
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.method();
^^^^^^";
^^^^^^" in c{<unresolved>}.method();
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:29:5: Error: The property 'method' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.method;
^^^^^^";
^^^^^^" in c{<unresolved>}.method;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:30:5: Error: The property 'getter' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.getter;
^^^^^^";
^^^^^^" in c{<unresolved>}.getter;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:31:5: Error: The property 'setter' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.setter;
^^^^^^";
^^^^^^" in c{<unresolved>}.setter;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:32:5: Error: The property 'getter' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.getter = 42;
^^^^^^";
^^^^^^" in c{<unresolved>}.getter = 42;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:33:5: Error: The property 'setter' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.setter = 42;
^^^^^^";
^^^^^^" in c{<unresolved>}.setter = 42;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:34:5: Error: The property 'property' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.property;
^^^^^^^^";
^^^^^^^^" in c{<unresolved>}.property;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:35:5: Error: The property 'property' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.property = 42;
^^^^^^^^";
^^^^^^^^" in c{<unresolved>}.property = 42;
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:36:5: Error: The operator '+' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c + 0;
^";
^" in c{<unresolved>}.+(0);
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:37:3: Error: The operator 'unary-' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
-c;
^";
^" in c{<unresolved>}.unary-();
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:38:4: Error: The operator '[]' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c[42];
^";
^" in c{<unresolved>}.[](42);
invalid-expression "pkg/front_end/testcases/extensions/ambiguous.dart:39:4: Error: The operator '[]=' is defined in multiple extensions for 'C' and neither is more specific.
- 'C' is from 'pkg/front_end/testcases/extensions/ambiguous.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c[42] = 0;
^";
^" in c{<unresolved>}.[]=(42, 0);
}
static method main() → dynamic {}

View file

@ -855,7 +855,7 @@ static final field dynamic field1 = invalid-expression "pkg/front_end/testcases/
- 'A' is from 'pkg/front_end/testcases/extensions/check_bounds.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'method'.
final field1 = classA.method(); // Expect method not found.
^^^^^^";
^^^^^^" in self::classA{<unresolved>}.method();
static final field dynamic field2 = self::Extension|method<self::A*>(self::classA);
static final field dynamic field3 = self::Extension|method<self::A*>(self::classA);
static final field dynamic field4 = self::Extension|method<self::B*>(self::classA as{TypeError} self::Class<self::B*>*);
@ -900,7 +900,7 @@ static method test() → dynamic {
- 'A' is from 'pkg/front_end/testcases/extensions/check_bounds.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'method'.
classA.method(); // Expect method not found.
^^^^^^";
^^^^^^" in classA{<unresolved>}.method();
self::Extension|method<self::A*>(classA);
self::Extension|method<self::A*>(classA);
self::Extension|method<self::B*>(classA as{TypeError} self::Class<self::B*>*);
@ -939,7 +939,7 @@ static method /* from org-dartlang-testcase:///check_bounds_lib.dart */ testInPa
- 'A' is from 'pkg/front_end/testcases/extensions/check_bounds.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'method'.
classA.method();
^^^^^^";
^^^^^^" in classA{<unresolved>}.method();
self::Extension|method<self::A*>(classA);
self::Extension|method<self::A*>(classA);
self::Extension|method<self::B*>(classA as{TypeError} self::Class<self::B*>*);

View file

@ -855,7 +855,7 @@ static final field dynamic field1 = invalid-expression "pkg/front_end/testcases/
- 'A' is from 'pkg/front_end/testcases/extensions/check_bounds.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'method'.
final field1 = classA.method(); // Expect method not found.
^^^^^^";
^^^^^^" in self::classA{<unresolved>}.method();
static final field dynamic field2 = self::Extension|method<self::A*>(self::classA);
static final field dynamic field3 = self::Extension|method<self::A*>(self::classA);
static final field dynamic field4 = self::Extension|method<self::B*>(self::classA as{TypeError} self::Class<self::B*>*);
@ -900,7 +900,7 @@ static method test() → dynamic {
- 'A' is from 'pkg/front_end/testcases/extensions/check_bounds.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'method'.
classA.method(); // Expect method not found.
^^^^^^";
^^^^^^" in classA{<unresolved>}.method();
self::Extension|method<self::A*>(classA);
self::Extension|method<self::A*>(classA);
self::Extension|method<self::B*>(classA as{TypeError} self::Class<self::B*>*);
@ -939,7 +939,7 @@ static method /* from org-dartlang-testcase:///check_bounds_lib.dart */ testInPa
- 'A' is from 'pkg/front_end/testcases/extensions/check_bounds.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'method'.
classA.method();
^^^^^^";
^^^^^^" in classA{<unresolved>}.method();
self::Extension|method<self::A*>(classA);
self::Extension|method<self::A*>(classA);
self::Extension|method<self::B*>(classA as{TypeError} self::Class<self::B*>*);

View file

@ -78,7 +78,7 @@ static method errors() → dynamic {
invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:28:6: Error: The setter 'hashCode' isn't defined for the class 'String'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'hashCode'.
\"\".hashCode = 42;
^^^^^^^^";
^^^^^^^^" in ""{<unresolved>}.hashCode = 42;
value = invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:29:14: Error: A value of type 'Type' can't be assigned to a variable of type 'int'.
- 'Type' is from 'dart:core'.
value = \"\".runtimeType;

View file

@ -78,7 +78,7 @@ static method errors() → dynamic {
invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:28:6: Error: The setter 'hashCode' isn't defined for the class 'String'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'hashCode'.
\"\".hashCode = 42;
^^^^^^^^";
^^^^^^^^" in ""{<unresolved>}.hashCode = 42;
value = invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:29:14: Error: A value of type 'Type' can't be assigned to a variable of type 'int'.
- 'Type' is from 'dart:core'.
value = \"\".runtimeType;

View file

@ -86,5 +86,5 @@ static method errors() → dynamic {
- 'Class2' is from 'pkg/front_end/testcases/extensions/conflicts.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'uniqueMethod2'.
c2.uniqueMethod2();
^^^^^^^^^^^^^";
^^^^^^^^^^^^^" in c2{<unresolved>}.uniqueMethod2();
}

View file

@ -86,5 +86,5 @@ static method errors() → dynamic {
- 'Class2' is from 'pkg/front_end/testcases/extensions/conflicts.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'uniqueMethod2'.
c2.uniqueMethod2();
^^^^^^^^^^^^^";
^^^^^^^^^^^^^" in c2{<unresolved>}.uniqueMethod2();
}

View file

@ -113,32 +113,32 @@ static method errors() → dynamic {
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'm2'.
expect(0, c.m2);
^^");
^^" in c{<unresolved>}.m2);
invalid-expression "pkg/front_end/testcases/extensions/getter_setter_conflict.dart:31:5: Error: The setter 'm1' isn't defined for the class 'Class'.
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'm1'.
c.m1 = 2;
^^";
^^" in c{<unresolved>}.m1 = 2;
invalid-expression "pkg/front_end/testcases/extensions/getter_setter_conflict.dart:32:5: Error: The property 'm3' is defined in multiple extensions for 'Class' and neither is more specific.
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.m3;
^^";
^^" in c{<unresolved>}.m3;
invalid-expression "pkg/front_end/testcases/extensions/getter_setter_conflict.dart:33:5: Error: The property 'm3' is defined in multiple extensions for 'Class' and neither is more specific.
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.m3 = 2;
^^";
^^" in c{<unresolved>}.m3 = 2;
invalid-expression "pkg/front_end/testcases/extensions/getter_setter_conflict.dart:34:5: Error: The property 'm4' is defined in multiple extensions for 'Class' and neither is more specific.
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.m4;
^^";
^^" in c{<unresolved>}.m4;
invalid-expression "pkg/front_end/testcases/extensions/getter_setter_conflict.dart:35:5: Error: The property 'm4' is defined in multiple extensions for 'Class' and neither is more specific.
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.m4 = 2;
^^";
^^" in c{<unresolved>}.m4 = 2;
}
static method expect(dynamic expected, dynamic actual) → dynamic {
if(!(expected =={core::Object::==}{(core::Object*) →* core::bool*} actual)) {

View file

@ -113,32 +113,32 @@ static method errors() → dynamic {
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'm2'.
expect(0, c.m2);
^^");
^^" in c{<unresolved>}.m2);
invalid-expression "pkg/front_end/testcases/extensions/getter_setter_conflict.dart:31:5: Error: The setter 'm1' isn't defined for the class 'Class'.
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'm1'.
c.m1 = 2;
^^";
^^" in c{<unresolved>}.m1 = 2;
invalid-expression "pkg/front_end/testcases/extensions/getter_setter_conflict.dart:32:5: Error: The property 'm3' is defined in multiple extensions for 'Class' and neither is more specific.
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.m3;
^^";
^^" in c{<unresolved>}.m3;
invalid-expression "pkg/front_end/testcases/extensions/getter_setter_conflict.dart:33:5: Error: The property 'm3' is defined in multiple extensions for 'Class' and neither is more specific.
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.m3 = 2;
^^";
^^" in c{<unresolved>}.m3 = 2;
invalid-expression "pkg/front_end/testcases/extensions/getter_setter_conflict.dart:34:5: Error: The property 'm4' is defined in multiple extensions for 'Class' and neither is more specific.
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.m4;
^^";
^^" in c{<unresolved>}.m4;
invalid-expression "pkg/front_end/testcases/extensions/getter_setter_conflict.dart:35:5: Error: The property 'm4' is defined in multiple extensions for 'Class' and neither is more specific.
- 'Class' is from 'pkg/front_end/testcases/extensions/getter_setter_conflict.dart'.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
c.m4 = 2;
^^";
^^" in c{<unresolved>}.m4 = 2;
}
static method expect(dynamic expected, dynamic actual) → dynamic {
if(!(expected =={core::Object::==}{(core::Object*) →* core::bool*} actual)) {

View file

@ -79,30 +79,30 @@ static method main() → dynamic {
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'staticMethod'.
c.staticMethod();
^^^^^^^^^^^^";
^^^^^^^^^^^^" in c{<unresolved>}.staticMethod();
invalid-expression "pkg/front_end/testcases/extensions/instance_access_of_static.dart:27:5: Error: The getter 'staticMethod' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'staticMethod'.
c.staticMethod;
^^^^^^^^^^^^";
^^^^^^^^^^^^" in c{<unresolved>}.staticMethod;
invalid-expression "pkg/front_end/testcases/extensions/instance_access_of_static.dart:28:5: Error: The getter 'staticProperty' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'staticProperty'.
c.staticProperty;
^^^^^^^^^^^^^^";
^^^^^^^^^^^^^^" in c{<unresolved>}.staticProperty;
invalid-expression "pkg/front_end/testcases/extensions/instance_access_of_static.dart:29:5: Error: The setter 'staticProperty' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'staticProperty'.
c.staticProperty = 42;
^^^^^^^^^^^^^^";
^^^^^^^^^^^^^^" in c{<unresolved>}.staticProperty = 42;
invalid-expression "pkg/front_end/testcases/extensions/instance_access_of_static.dart:30:5: Error: The getter 'staticField' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'staticField'.
c.staticField;
^^^^^^^^^^^";
^^^^^^^^^^^" in c{<unresolved>}.staticField;
invalid-expression "pkg/front_end/testcases/extensions/instance_access_of_static.dart:31:5: Error: The setter 'staticField' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'staticField'.
c.staticField = 42;
^^^^^^^^^^^";
^^^^^^^^^^^" in c{<unresolved>}.staticField = 42;
}

View file

@ -79,30 +79,30 @@ static method main() → dynamic {
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'staticMethod'.
c.staticMethod();
^^^^^^^^^^^^";
^^^^^^^^^^^^" in c{<unresolved>}.staticMethod();
invalid-expression "pkg/front_end/testcases/extensions/instance_access_of_static.dart:27:5: Error: The getter 'staticMethod' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'staticMethod'.
c.staticMethod;
^^^^^^^^^^^^";
^^^^^^^^^^^^" in c{<unresolved>}.staticMethod;
invalid-expression "pkg/front_end/testcases/extensions/instance_access_of_static.dart:28:5: Error: The getter 'staticProperty' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'staticProperty'.
c.staticProperty;
^^^^^^^^^^^^^^";
^^^^^^^^^^^^^^" in c{<unresolved>}.staticProperty;
invalid-expression "pkg/front_end/testcases/extensions/instance_access_of_static.dart:29:5: Error: The setter 'staticProperty' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'staticProperty'.
c.staticProperty = 42;
^^^^^^^^^^^^^^";
^^^^^^^^^^^^^^" in c{<unresolved>}.staticProperty = 42;
invalid-expression "pkg/front_end/testcases/extensions/instance_access_of_static.dart:30:5: Error: The getter 'staticField' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'staticField'.
c.staticField;
^^^^^^^^^^^";
^^^^^^^^^^^" in c{<unresolved>}.staticField;
invalid-expression "pkg/front_end/testcases/extensions/instance_access_of_static.dart:31:5: Error: The setter 'staticField' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/extensions/instance_access_of_static.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'staticField'.
c.staticField = 42;
^^^^^^^^^^^";
^^^^^^^^^^^" in c{<unresolved>}.staticField = 42;
}

View file

@ -154,28 +154,28 @@ static method errors() → dynamic {
- 'C' is from 'pkg/front_end/testcases/extensions/issue38745.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'field'.
c.field;
^^^^^";
^^^^^" in c{<unresolved>}.field;
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:35:5: Error: The setter 'field' isn't defined for the class 'C<int>'.
- 'C' is from 'pkg/front_end/testcases/extensions/issue38745.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'field'.
c.field = 23;
^^^^^";
^^^^^" in c{<unresolved>}.field = 23;
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:36:5: Error: The getter 'property' isn't defined for the class 'C<int>'.
- 'C' is from 'pkg/front_end/testcases/extensions/issue38745.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'property'.
c.property;
^^^^^^^^";
^^^^^^^^" in c{<unresolved>}.property;
self::ext|set#property<core::int*>(c, 23);
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:38:5: Error: The getter 'property2' isn't defined for the class 'C<int>'.
- 'C' is from 'pkg/front_end/testcases/extensions/issue38745.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'property2'.
c.property2;
^^^^^^^^^";
^^^^^^^^^" in c{<unresolved>}.property2;
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:39:5: Error: The setter 'property2' isn't defined for the class 'C<int>'.
- 'C' is from 'pkg/front_end/testcases/extensions/issue38745.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'property2'.
c.property2 = 23;
^^^^^^^^^";
^^^^^^^^^" in c{<unresolved>}.property2 = 23;
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:40:10: Error: Getter not found: 'field'.
ext(c).field;
^^^^^";

View file

@ -154,28 +154,28 @@ static method errors() → dynamic {
- 'C' is from 'pkg/front_end/testcases/extensions/issue38745.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'field'.
c.field;
^^^^^";
^^^^^" in c{<unresolved>}.field;
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:35:5: Error: The setter 'field' isn't defined for the class 'C<int>'.
- 'C' is from 'pkg/front_end/testcases/extensions/issue38745.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'field'.
c.field = 23;
^^^^^";
^^^^^" in c{<unresolved>}.field = 23;
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:36:5: Error: The getter 'property' isn't defined for the class 'C<int>'.
- 'C' is from 'pkg/front_end/testcases/extensions/issue38745.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'property'.
c.property;
^^^^^^^^";
^^^^^^^^" in c{<unresolved>}.property;
self::ext|set#property<core::int*>(c, 23);
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:38:5: Error: The getter 'property2' isn't defined for the class 'C<int>'.
- 'C' is from 'pkg/front_end/testcases/extensions/issue38745.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'property2'.
c.property2;
^^^^^^^^^";
^^^^^^^^^" in c{<unresolved>}.property2;
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:39:5: Error: The setter 'property2' isn't defined for the class 'C<int>'.
- 'C' is from 'pkg/front_end/testcases/extensions/issue38745.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'property2'.
c.property2 = 23;
^^^^^^^^^";
^^^^^^^^^" in c{<unresolved>}.property2 = 23;
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:40:10: Error: Getter not found: 'field'.
ext(c).field;
^^^^^";

View file

@ -31,7 +31,7 @@ static method errors() → dynamic {
- 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
Try correcting the name to the name of an existing method, or defining a method named '_foo'.
c._foo();
^^^^";
^^^^" in c{<unresolved>}._foo();
invalid-expression "pkg/front_end/testcases/extensions/issue38750.dart:13:5: Error: Method not found: 'C._staticFoo'.
C._staticFoo();
^^^^^^^^^^";
@ -41,7 +41,7 @@ Try correcting the name to the name of an existing method, or defining a method
- 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
Try correcting the name to the name of an existing method, or defining a method named '_bar'.
c._bar();
^^^^";
^^^^" in c{<unresolved>}._bar();
}
library;
@ -114,5 +114,5 @@ static method errors() → dynamic {
- 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
Try correcting the name to the name of an existing method, or defining a method named '_bar'.
c._bar();
^^^^";
^^^^" in c{<unresolved>}._bar();
}

View file

@ -31,7 +31,7 @@ static method errors() → dynamic {
- 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
Try correcting the name to the name of an existing method, or defining a method named '_foo'.
c._foo();
^^^^";
^^^^" in c{<unresolved>}._foo();
invalid-expression "pkg/front_end/testcases/extensions/issue38750.dart:13:5: Error: Method not found: 'C._staticFoo'.
C._staticFoo();
^^^^^^^^^^";
@ -41,7 +41,7 @@ Try correcting the name to the name of an existing method, or defining a method
- 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
Try correcting the name to the name of an existing method, or defining a method named '_bar'.
c._bar();
^^^^";
^^^^" in c{<unresolved>}._bar();
}
library;
@ -114,5 +114,5 @@ static method errors() → dynamic {
- 'C' is from 'pkg/front_end/testcases/extensions/issue38750_lib1.dart'.
Try correcting the name to the name of an existing method, or defining a method named '_bar'.
c._bar();
^^^^";
^^^^" in c{<unresolved>}._bar();
}

View file

@ -30,7 +30,7 @@ static method errors() → void {
final core::List<core::Object*>* list = <core::Object*>[];
invalid-expression "pkg/front_end/testcases/extensions/issue40713.dart:22:8: Error: 'safeFirst' isn't a function or method and can't be invoked.
list.safeFirst();
^^^^^^^^^";
^^^^^^^^^" in self::SafeAccess|get#safeFirst<core::Object*>(list){<unresolved>}.call();
final core::List<(core::int*) →* void>* list2 = <(core::int*) →* void>[];
invalid-expression "pkg/front_end/testcases/extensions/issue40713.dart:24:18: Error: Too few positional arguments: 1 required, 0 given.
list2.safeFirst();

View file

@ -30,7 +30,7 @@ static method errors() → void {
final core::List<core::Object*>* list = core::_GrowableList::•<core::Object*>(0);
invalid-expression "pkg/front_end/testcases/extensions/issue40713.dart:22:8: Error: 'safeFirst' isn't a function or method and can't be invoked.
list.safeFirst();
^^^^^^^^^";
^^^^^^^^^" in self::SafeAccess|get#safeFirst<core::Object*>(list){<unresolved>}.call();
final core::List<(core::int*) →* void>* list2 = core::_GrowableList::•<(core::int*) →* void>(0);
invalid-expression "pkg/front_end/testcases/extensions/issue40713.dart:24:18: Error: Too few positional arguments: 1 required, 0 given.
list2.safeFirst();

View file

@ -43,6 +43,6 @@ static method test() → dynamic {
let final self::C* #t1 = c in invalid-expression "pkg/front_end/testcases/extensions/issue43218.dart:24:10: Error: The setter 'id' isn't defined for the class 'int'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'id'.
Ext(c).id++;
^^";
^^" in #t1{<unresolved>}.id = self::Ext|get#id(#t1).{core::num::+}(1){(core::num*) →* core::int*};
}
static method main() → dynamic {}

View file

@ -43,6 +43,6 @@ static method test() → dynamic {
let final self::C* #t1 = c in invalid-expression "pkg/front_end/testcases/extensions/issue43218.dart:24:10: Error: The setter 'id' isn't defined for the class 'int'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'id'.
Ext(c).id++;
^^";
^^" in #t1{<unresolved>}.id = self::Ext|get#id(#t1).{core::num::+}(1){(core::num*) →* core::int*};
}
static method main() → dynamic {}

View file

@ -27,7 +27,7 @@ static method test(core::List<core::String*>* args) → void {
- 'List' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named 'foo'.
args.foo('1', 2);
^^^";
^^^" in args{<unresolved>}.foo("1", 2);
}
static method _extension#0|foo(lowered final core::List<core::String*>* #this, core::String* bar) → void {
core::print(1);

View file

@ -27,7 +27,7 @@ static method test(core::List<core::String*>* args) → void {
- 'List' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named 'foo'.
args.foo('1', 2);
^^^";
^^^" in args{<unresolved>}.foo("1", 2);
}
static method _extension#0|foo(lowered final core::List<core::String*>* #this, core::String* bar) → void {
core::print(1);

View file

@ -25,6 +25,6 @@ static method test() → void {
invalid-expression "pkg/front_end/testcases/extensions/issue44844.dart:11:5: Error: The method 'foo' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'foo'.
3.foo();
^^^";
^^^" in 3{<unresolved>}.foo();
}
static method main() → dynamic {}

View file

@ -25,6 +25,6 @@ static method test() → void {
invalid-expression "pkg/front_end/testcases/extensions/issue44844.dart:11:5: Error: The method 'foo' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'foo'.
3.foo();
^^^";
^^^" in 3{<unresolved>}.foo();
}
static method main() → dynamic {}

View file

@ -34,6 +34,6 @@ static field dynamic missingGetter = let final self::Class* #t1 = self::c in let
- 'Class' is from 'pkg/front_end/testcases/extensions/missing_toplevel.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'setter'.
var missingGetter = c.setter += 42;
^^^^^^"{dynamic}.+(42) as{TypeError,ForDynamic} core::int* in let final void #t3 = self::Extension|set#setter(#t1, #t2) in #t2;
^^^^^^" in #t1{<unresolved>}.setter{dynamic}.+(42) as{TypeError,ForDynamic} core::int* in let final void #t3 = self::Extension|set#setter(#t1, #t2) in #t2;
static method Extension|set#setter(lowered final self::Class* #this, core::int* value) → void {}
static method main() → dynamic {}

View file

@ -34,6 +34,6 @@ static field dynamic missingGetter = let final self::Class* #t1 = self::c in let
- 'Class' is from 'pkg/front_end/testcases/extensions/missing_toplevel.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'setter'.
var missingGetter = c.setter += 42;
^^^^^^"{dynamic}.+(42) as{TypeError,ForDynamic} core::int* in let final void #t3 = self::Extension|set#setter(#t1, #t2) in #t2;
^^^^^^" in #t1{<unresolved>}.setter{dynamic}.+(42) as{TypeError,ForDynamic} core::int* in let final void #t3 = self::Extension|set#setter(#t1, #t2) in #t2;
static method Extension|set#setter(lowered final self::Class* #this, core::int* value) → void {}
static method main() → dynamic {}

View file

@ -120,25 +120,29 @@ static method testNonStruct() → dynamic {
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'method'.
nonStruct.method();
^^^^^^";
^^^^^^" in nonStruct{<unresolved>}.method();
invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:45:13: Error: The setter 'property' isn't defined for the class 'NonStruct'.
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'property'.
nonStruct.property = nonStruct.property;
^^^^^^^^";
^^^^^^^^" in nonStruct{<unresolved>}.property = invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:45:34: Error: The getter 'property' isn't defined for the class 'NonStruct'.
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'property'.
nonStruct.property = nonStruct.property;
^^^^^^^^" in nonStruct{<unresolved>}.property;
invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:46:19: Error: The method 'method' isn't defined for the class 'NonStruct'.
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'method'.
new NonStruct().method();
^^^^^^";
^^^^^^" in new self::NonStruct::•(){<unresolved>}.method();
invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:47:19: Error: The getter 'property' isn't defined for the class 'NonStruct'.
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'property'.
new NonStruct().property;
^^^^^^^^";
^^^^^^^^" in new self::NonStruct::•(){<unresolved>}.property;
invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:48:19: Error: The setter 'property' isn't defined for the class 'NonStruct'.
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'property'.
new NonStruct().property = null;
^^^^^^^^";
^^^^^^^^" in new self::NonStruct::•(){<unresolved>}.property = null;
}

View file

@ -120,25 +120,29 @@ static method testNonStruct() → dynamic {
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'method'.
nonStruct.method();
^^^^^^";
^^^^^^" in nonStruct{<unresolved>}.method();
invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:45:13: Error: The setter 'property' isn't defined for the class 'NonStruct'.
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'property'.
nonStruct.property = nonStruct.property;
^^^^^^^^";
^^^^^^^^" in nonStruct{<unresolved>}.property = invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:45:34: Error: The getter 'property' isn't defined for the class 'NonStruct'.
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'property'.
nonStruct.property = nonStruct.property;
^^^^^^^^" in nonStruct{<unresolved>}.property;
invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:46:19: Error: The method 'method' isn't defined for the class 'NonStruct'.
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'method'.
new NonStruct().method();
^^^^^^";
^^^^^^" in new self::NonStruct::•(){<unresolved>}.method();
invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:47:19: Error: The getter 'property' isn't defined for the class 'NonStruct'.
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'property'.
new NonStruct().property;
^^^^^^^^";
^^^^^^^^" in new self::NonStruct::•(){<unresolved>}.property;
invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:48:19: Error: The setter 'property' isn't defined for the class 'NonStruct'.
- 'NonStruct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'property'.
new NonStruct().property = null;
^^^^^^^^";
^^^^^^^^" in new self::NonStruct::•(){<unresolved>}.property = null;
}

View file

@ -66,23 +66,23 @@ static method errors() → dynamic {
pri::expect(42, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:17:17: Error: The method 'publicMethod1' isn't defined for the class 'String'.
Try correcting the name to the name of an existing method, or defining a method named 'publicMethod1'.
expect(42, \"\".publicMethod1());
^^^^^^^^^^^^^");
^^^^^^^^^^^^^" in ""{<unresolved>}.publicMethod1());
pri::expect(87, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:18:17: Error: The method '_privateMethod1' isn't defined for the class 'String'.
Try correcting the name to the name of an existing method, or defining a method named '_privateMethod1'.
expect(87, \"\"._privateMethod1());
^^^^^^^^^^^^^^^");
^^^^^^^^^^^^^^^" in ""{<unresolved>}._privateMethod1());
pri::expect(237, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:19:18: Error: The method '_privateMethod2' isn't defined for the class 'String'.
Try correcting the name to the name of an existing method, or defining a method named '_privateMethod2'.
expect(237, \"\"._privateMethod2());
^^^^^^^^^^^^^^^");
^^^^^^^^^^^^^^^" in ""{<unresolved>}._privateMethod2());
pri::expect(473, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:20:18: Error: The method 'publicMethod3' isn't defined for the class 'String'.
Try correcting the name to the name of an existing method, or defining a method named 'publicMethod3'.
expect(473, \"\".publicMethod3());
^^^^^^^^^^^^^");
^^^^^^^^^^^^^" in ""{<unresolved>}.publicMethod3());
pri::expect(586, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:21:18: Error: The method '_privateMethod3' isn't defined for the class 'String'.
Try correcting the name to the name of an existing method, or defining a method named '_privateMethod3'.
expect(586, \"\"._privateMethod3());
^^^^^^^^^^^^^^^");
^^^^^^^^^^^^^^^" in ""{<unresolved>}._privateMethod3());
pri::expect(42, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:23:14: Error: Method not found: '_PrivateExtension'.
expect(42, _PrivateExtension(\"\").publicMethod1());
^^^^^^^^^^^^^^^^^"{dynamic}.publicMethod1());

View file

@ -66,23 +66,23 @@ static method errors() → dynamic {
pri::expect(42, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:17:17: Error: The method 'publicMethod1' isn't defined for the class 'String'.
Try correcting the name to the name of an existing method, or defining a method named 'publicMethod1'.
expect(42, \"\".publicMethod1());
^^^^^^^^^^^^^");
^^^^^^^^^^^^^" in ""{<unresolved>}.publicMethod1());
pri::expect(87, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:18:17: Error: The method '_privateMethod1' isn't defined for the class 'String'.
Try correcting the name to the name of an existing method, or defining a method named '_privateMethod1'.
expect(87, \"\"._privateMethod1());
^^^^^^^^^^^^^^^");
^^^^^^^^^^^^^^^" in ""{<unresolved>}._privateMethod1());
pri::expect(237, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:19:18: Error: The method '_privateMethod2' isn't defined for the class 'String'.
Try correcting the name to the name of an existing method, or defining a method named '_privateMethod2'.
expect(237, \"\"._privateMethod2());
^^^^^^^^^^^^^^^");
^^^^^^^^^^^^^^^" in ""{<unresolved>}._privateMethod2());
pri::expect(473, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:20:18: Error: The method 'publicMethod3' isn't defined for the class 'String'.
Try correcting the name to the name of an existing method, or defining a method named 'publicMethod3'.
expect(473, \"\".publicMethod3());
^^^^^^^^^^^^^");
^^^^^^^^^^^^^" in ""{<unresolved>}.publicMethod3());
pri::expect(586, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:21:18: Error: The method '_privateMethod3' isn't defined for the class 'String'.
Try correcting the name to the name of an existing method, or defining a method named '_privateMethod3'.
expect(586, \"\"._privateMethod3());
^^^^^^^^^^^^^^^");
^^^^^^^^^^^^^^^" in ""{<unresolved>}._privateMethod3());
pri::expect(42, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:23:14: Error: Method not found: '_PrivateExtension'.
expect(42, _PrivateExtension(\"\").publicMethod1());
^^^^^^^^^^^^^^^^^"{dynamic}.publicMethod1());

View file

@ -0,0 +1,16 @@
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
abstract class A {}
abstract class B implements A {
factory B() = A;
}
test() {
new A();
new B();
}
main() {}

View file

@ -0,0 +1,8 @@
abstract class A {}
abstract class B implements A {
factory B() = A;
}
test() {}
main() {}

View file

@ -0,0 +1,8 @@
abstract class A {}
abstract class B implements A {
factory B() = A;
}
main() {}
test() {}

View file

@ -0,0 +1,36 @@
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/abstract_instantiation.dart:8:17: Error: The constructor function type 'A Function()' isn't a subtype of 'B Function()'.
// - 'A' is from 'pkg/front_end/testcases/general/abstract_instantiation.dart'.
// - 'B' is from 'pkg/front_end/testcases/general/abstract_instantiation.dart'.
// factory B() = A;
// ^
//
// pkg/front_end/testcases/general/abstract_instantiation.dart:12:7: Error: The class 'A' is abstract and can't be instantiated.
// new A();
// ^
//
// pkg/front_end/testcases/general/abstract_instantiation.dart:8:11: Error: Factory redirects to class 'A', which is abstract and can't be instantiated.
// factory B() = A;
// ^
//
import self as self;
import "dart:core" as core;
abstract class A extends core::Object {
synthetic constructor •() → self::A
: super core::Object::•()
;
}
abstract class B extends core::Object implements self::A {
static final field dynamic _redirecting# = <dynamic>[self::B::•]/*isLegacy*/;
static factory •() → self::B
let dynamic #redirecting_factory = self::A::• in invalid-expression;
}
static method test() → dynamic {
throw new core::AbstractClassInstantiationError::•("A");
throw new core::AbstractClassInstantiationError::•("A");
}
static method main() → dynamic {}

View file

@ -0,0 +1,26 @@
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/abstract_instantiation.dart:8:17: Error: The constructor function type 'A Function()' isn't a subtype of 'B Function()'.
// - 'A' is from 'pkg/front_end/testcases/general/abstract_instantiation.dart'.
// - 'B' is from 'pkg/front_end/testcases/general/abstract_instantiation.dart'.
// factory B() = A;
// ^
//
import self as self;
import "dart:core" as core;
abstract class A extends core::Object {
synthetic constructor •() → self::A
;
}
abstract class B extends core::Object implements self::A {
static final field dynamic _redirecting# = <dynamic>[self::B::•]/*isLegacy*/;
static factory •() → self::B
let dynamic #redirecting_factory = self::A::• in invalid-expression;
}
static method test() → dynamic
;
static method main() → dynamic
;

View file

@ -0,0 +1,36 @@
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/abstract_instantiation.dart:8:17: Error: The constructor function type 'A Function()' isn't a subtype of 'B Function()'.
// - 'A' is from 'pkg/front_end/testcases/general/abstract_instantiation.dart'.
// - 'B' is from 'pkg/front_end/testcases/general/abstract_instantiation.dart'.
// factory B() = A;
// ^
//
// pkg/front_end/testcases/general/abstract_instantiation.dart:12:7: Error: The class 'A' is abstract and can't be instantiated.
// new A();
// ^
//
// pkg/front_end/testcases/general/abstract_instantiation.dart:8:11: Error: Factory redirects to class 'A', which is abstract and can't be instantiated.
// factory B() = A;
// ^
//
import self as self;
import "dart:core" as core;
abstract class A extends core::Object {
synthetic constructor •() → self::A
: super core::Object::•()
;
}
abstract class B extends core::Object implements self::A {
static final field dynamic _redirecting# = <dynamic>[self::B::•]/*isLegacy*/;
static factory •() → self::B
let Never #redirecting_factory = self::A::• in invalid-expression;
}
static method test() → dynamic {
throw new core::AbstractClassInstantiationError::•("A");
throw new core::AbstractClassInstantiationError::•("A");
}
static method main() → dynamic {}

View file

@ -1,7 +1,9 @@
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart=2.9
class Interface1 {
void interfaceMethod1() {}
}

View file

@ -2,37 +2,37 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/abstract_members.dart:19:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:21:16: Error: Can't inherit members that conflict with each other.
// abstract class A implements Interface1, Interface2, Interface3 {
// ^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:27:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:29:16: Error: Can't inherit members that conflict with each other.
// abstract class B extends A {
// ^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:33:7: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:35:7: Error: Can't inherit members that conflict with each other.
// class MyClass extends B {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:33:7: Error: The non-abstract class 'MyClass' is missing implementations for these members:
// pkg/front_end/testcases/general/abstract_members.dart:35:7: Error: The non-abstract class 'MyClass' is missing implementations for these members:
// - A.abstractMethod
// - A.property1=
// - A.property3=
@ -48,59 +48,59 @@ library;
//
// class MyClass extends B {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:21:3: Context: 'A.abstractMethod' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:23:3: Context: 'A.abstractMethod' is defined here.
// abstractMethod();
// ^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:22:12: Context: 'A.property1=' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:24:12: Context: 'A.property1=' is defined here.
// void set property1(_);
// ^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:24:12: Context: 'A.property3=' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:26:12: Context: 'A.property3=' is defined here.
// void set property3(_);
// ^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: 'Interface1.interfaceMethod1' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: 'Interface1.interfaceMethod1' is defined here.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: 'Interface2.interfaceMethod1' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: 'Interface2.interfaceMethod1' is defined here.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:10:8: Context: 'Interface2.interfaceMethod2' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:12:8: Context: 'Interface2.interfaceMethod2' is defined here.
// void interfaceMethod2() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:16:8: Context: 'Interface3.interfaceMethod3' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:18:8: Context: 'Interface3.interfaceMethod3' is defined here.
// void interfaceMethod3() {}
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:42:7: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:44:7: Error: Can't inherit members that conflict with each other.
// class MyMock1 extends B {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:48:7: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:50:7: Error: Can't inherit members that conflict with each other.
// class MyMock2 extends MyMock1 {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:54:7: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:56:7: Error: Can't inherit members that conflict with each other.
// class MyMock3 extends B {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:54:7: Error: The non-abstract class 'MyMock3' is missing implementations for these members:
// pkg/front_end/testcases/general/abstract_members.dart:56:7: Error: The non-abstract class 'MyMock3' is missing implementations for these members:
// - A.abstractMethod
// - A.property1=
// - A.property2=
@ -117,68 +117,68 @@ library;
//
// class MyMock3 extends B {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:21:3: Context: 'A.abstractMethod' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:23:3: Context: 'A.abstractMethod' is defined here.
// abstractMethod();
// ^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:22:12: Context: 'A.property1=' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:24:12: Context: 'A.property1=' is defined here.
// void set property1(_);
// ^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:23:12: Context: 'A.property2=' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:25:12: Context: 'A.property2=' is defined here.
// void set property2(_);
// ^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:24:12: Context: 'A.property3=' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:26:12: Context: 'A.property3=' is defined here.
// void set property3(_);
// ^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: 'Interface1.interfaceMethod1' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: 'Interface1.interfaceMethod1' is defined here.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: 'Interface2.interfaceMethod1' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: 'Interface2.interfaceMethod1' is defined here.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:10:8: Context: 'Interface2.interfaceMethod2' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:12:8: Context: 'Interface2.interfaceMethod2' is defined here.
// void interfaceMethod2() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:16:8: Context: 'Interface3.interfaceMethod3' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:18:8: Context: 'Interface3.interfaceMethod3' is defined here.
// void interfaceMethod3() {}
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:64:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:66:16: Error: Can't inherit members that conflict with each other.
// abstract class D extends C implements Interface2 {}
// ^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is one inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:59:8: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:61:8: Context: This is the other inherited member.
// void interfaceMethod1(_) {}
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:72:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:74:16: Error: Can't inherit members that conflict with each other.
// abstract class F extends E implements Interface1 {}
// ^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:67:12: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:69:12: Context: This is the other inherited member.
// void set interfaceMethod1(_) {}
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:84:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:86:16: Error: Can't inherit members that conflict with each other.
// abstract class H extends G implements Foo {}
// ^
// pkg/front_end/testcases/general/abstract_members.dart:75:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:77:8: Context: This is one inherited member.
// void foo() {}
// ^^^
// pkg/front_end/testcases/general/abstract_members.dart:79:14: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:81:14: Context: This is the other inherited member.
// Object get foo => null;
// ^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:96:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:98:16: Error: Can't inherit members that conflict with each other.
// abstract class J extends I implements Bar {}
// ^
// pkg/front_end/testcases/general/abstract_members.dart:87:14: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:89:14: Context: This is one inherited member.
// Object get foo => null;
// ^^^
// pkg/front_end/testcases/general/abstract_members.dart:91:10: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:93:10: Context: This is the other inherited member.
// Object foo() {}
// ^^^
//

View file

@ -2,37 +2,37 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/abstract_members.dart:19:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:21:16: Error: Can't inherit members that conflict with each other.
// abstract class A implements Interface1, Interface2, Interface3 {
// ^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:27:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:29:16: Error: Can't inherit members that conflict with each other.
// abstract class B extends A {
// ^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:33:7: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:35:7: Error: Can't inherit members that conflict with each other.
// class MyClass extends B {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:33:7: Error: The non-abstract class 'MyClass' is missing implementations for these members:
// pkg/front_end/testcases/general/abstract_members.dart:35:7: Error: The non-abstract class 'MyClass' is missing implementations for these members:
// - A.abstractMethod
// - A.property1=
// - A.property3=
@ -48,59 +48,59 @@ library;
//
// class MyClass extends B {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:21:3: Context: 'A.abstractMethod' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:23:3: Context: 'A.abstractMethod' is defined here.
// abstractMethod();
// ^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:22:12: Context: 'A.property1=' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:24:12: Context: 'A.property1=' is defined here.
// void set property1(_);
// ^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:24:12: Context: 'A.property3=' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:26:12: Context: 'A.property3=' is defined here.
// void set property3(_);
// ^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: 'Interface1.interfaceMethod1' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: 'Interface1.interfaceMethod1' is defined here.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: 'Interface2.interfaceMethod1' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: 'Interface2.interfaceMethod1' is defined here.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:10:8: Context: 'Interface2.interfaceMethod2' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:12:8: Context: 'Interface2.interfaceMethod2' is defined here.
// void interfaceMethod2() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:16:8: Context: 'Interface3.interfaceMethod3' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:18:8: Context: 'Interface3.interfaceMethod3' is defined here.
// void interfaceMethod3() {}
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:42:7: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:44:7: Error: Can't inherit members that conflict with each other.
// class MyMock1 extends B {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:48:7: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:50:7: Error: Can't inherit members that conflict with each other.
// class MyMock2 extends MyMock1 {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:54:7: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:56:7: Error: Can't inherit members that conflict with each other.
// class MyMock3 extends B {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is the other inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:54:7: Error: The non-abstract class 'MyMock3' is missing implementations for these members:
// pkg/front_end/testcases/general/abstract_members.dart:56:7: Error: The non-abstract class 'MyMock3' is missing implementations for these members:
// - A.abstractMethod
// - A.property1=
// - A.property2=
@ -117,68 +117,68 @@ library;
//
// class MyMock3 extends B {
// ^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:21:3: Context: 'A.abstractMethod' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:23:3: Context: 'A.abstractMethod' is defined here.
// abstractMethod();
// ^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:22:12: Context: 'A.property1=' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:24:12: Context: 'A.property1=' is defined here.
// void set property1(_);
// ^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:23:12: Context: 'A.property2=' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:25:12: Context: 'A.property2=' is defined here.
// void set property2(_);
// ^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:24:12: Context: 'A.property3=' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:26:12: Context: 'A.property3=' is defined here.
// void set property3(_);
// ^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: 'Interface1.interfaceMethod1' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: 'Interface1.interfaceMethod1' is defined here.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: 'Interface2.interfaceMethod1' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: 'Interface2.interfaceMethod1' is defined here.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:10:8: Context: 'Interface2.interfaceMethod2' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:12:8: Context: 'Interface2.interfaceMethod2' is defined here.
// void interfaceMethod2() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:16:8: Context: 'Interface3.interfaceMethod3' is defined here.
// pkg/front_end/testcases/general/abstract_members.dart:18:8: Context: 'Interface3.interfaceMethod3' is defined here.
// void interfaceMethod3() {}
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:64:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:66:16: Error: Can't inherit members that conflict with each other.
// abstract class D extends C implements Interface2 {}
// ^
// pkg/front_end/testcases/general/abstract_members.dart:12:7: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:14:7: Context: This is one inherited member.
// var interfaceMethod1;
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:59:8: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:61:8: Context: This is the other inherited member.
// void interfaceMethod1(_) {}
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:72:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:74:16: Error: Can't inherit members that conflict with each other.
// abstract class F extends E implements Interface1 {}
// ^
// pkg/front_end/testcases/general/abstract_members.dart:6:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:8:8: Context: This is one inherited member.
// void interfaceMethod1() {}
// ^^^^^^^^^^^^^^^^
// pkg/front_end/testcases/general/abstract_members.dart:67:12: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:69:12: Context: This is the other inherited member.
// void set interfaceMethod1(_) {}
// ^^^^^^^^^^^^^^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:84:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:86:16: Error: Can't inherit members that conflict with each other.
// abstract class H extends G implements Foo {}
// ^
// pkg/front_end/testcases/general/abstract_members.dart:75:8: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:77:8: Context: This is one inherited member.
// void foo() {}
// ^^^
// pkg/front_end/testcases/general/abstract_members.dart:79:14: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:81:14: Context: This is the other inherited member.
// Object get foo => null;
// ^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:96:16: Error: Can't inherit members that conflict with each other.
// pkg/front_end/testcases/general/abstract_members.dart:98:16: Error: Can't inherit members that conflict with each other.
// abstract class J extends I implements Bar {}
// ^
// pkg/front_end/testcases/general/abstract_members.dart:87:14: Context: This is one inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:89:14: Context: This is one inherited member.
// Object get foo => null;
// ^^^
// pkg/front_end/testcases/general/abstract_members.dart:91:10: Context: This is the other inherited member.
// pkg/front_end/testcases/general/abstract_members.dart:93:10: Context: This is the other inherited member.
// Object foo() {}
// ^^^
//
@ -425,32 +425,32 @@ static method main() → dynamic
Extra constant evaluation status:
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:10:8 -> SymbolConstant(#interfaceMethod2)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:10:8 -> ListConstant(const <Type*>[])
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:10:8 -> ListConstant(const <dynamic>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:10:8 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:21:3 -> SymbolConstant(#abstractMethod)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:21:3 -> ListConstant(const <Type*>[])
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:21:3 -> ListConstant(const <dynamic>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:21:3 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:6:8 -> SymbolConstant(#interfaceMethod1)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:6:8 -> ListConstant(const <Type*>[])
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:6:8 -> ListConstant(const <dynamic>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:6:8 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:16:8 -> SymbolConstant(#interfaceMethod3)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:16:8 -> ListConstant(const <Type*>[])
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:16:8 -> ListConstant(const <dynamic>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:16:8 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:24:12 -> SymbolConstant(#property3=)
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:12:8 -> SymbolConstant(#interfaceMethod2)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:12:8 -> ListConstant(const <Type*>[])
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:12:8 -> ListConstant(const <dynamic>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:12:8 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:23:3 -> SymbolConstant(#abstractMethod)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:23:3 -> ListConstant(const <Type*>[])
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:23:3 -> ListConstant(const <dynamic>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:23:3 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:8:8 -> SymbolConstant(#interfaceMethod1)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:8:8 -> ListConstant(const <Type*>[])
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:8:8 -> ListConstant(const <dynamic>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:8:8 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:18:8 -> SymbolConstant(#interfaceMethod3)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:18:8 -> ListConstant(const <Type*>[])
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:18:8 -> ListConstant(const <dynamic>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:18:8 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:26:12 -> SymbolConstant(#property3=)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:26:12 -> ListConstant(const <Type*>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:26:12 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:14:7 -> SymbolConstant(#interfaceMethod1=)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:14:7 -> ListConstant(const <Type*>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:14:7 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:24:12 -> SymbolConstant(#property1=)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:24:12 -> ListConstant(const <Type*>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:24:12 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:12:7 -> SymbolConstant(#interfaceMethod1=)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:12:7 -> ListConstant(const <Type*>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:12:7 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:22:12 -> SymbolConstant(#property1=)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:22:12 -> ListConstant(const <Type*>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:22:12 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:23:12 -> SymbolConstant(#property2=)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:23:12 -> ListConstant(const <Type*>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:23:12 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:25:12 -> SymbolConstant(#property2=)
Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:25:12 -> ListConstant(const <Type*>[])
Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:25:12 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
Extra constant evaluation: evaluated: 73, effectively constant: 28

View file

@ -34,7 +34,7 @@ class C extends core::Object {
- 'C' is from 'pkg/front_end/testcases/general/accessors.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'onlySetter'.
print(onlySetter);
^^^^^^^^^^");
^^^^^^^^^^" in this{<unresolved>}.onlySetter);
throw "No error thrown";
}
on core::NoSuchMethodError* catch(final core::NoSuchMethodError* e) {
@ -47,7 +47,7 @@ Try correcting the name to the name of an existing getter, or defining a getter
- 'C' is from 'pkg/front_end/testcases/general/accessors.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'onlySetter'.
print(onlySetter);
^^^^^^^^^^");
^^^^^^^^^^" in this{<unresolved>}.onlySetter);
this.{self::C::onlySetter} = "hest";
}
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode

View file

@ -34,7 +34,7 @@ class C extends core::Object {
- 'C' is from 'pkg/front_end/testcases/general/accessors.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'onlySetter'.
print(onlySetter);
^^^^^^^^^^");
^^^^^^^^^^" in this{<unresolved>}.onlySetter);
throw "No error thrown";
}
on core::NoSuchMethodError* catch(final core::NoSuchMethodError* e) {
@ -47,7 +47,7 @@ Try correcting the name to the name of an existing getter, or defining a getter
- 'C' is from 'pkg/front_end/testcases/general/accessors.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'onlySetter'.
print(onlySetter);
^^^^^^^^^^");
^^^^^^^^^^" in this{<unresolved>}.onlySetter);
this.{self::C::onlySetter} = "hest";
}
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode

View file

@ -30,18 +30,18 @@ static method test() → dynamic {
- 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
x();
^";
^" in x{<unresolved>}.call();
invalid-expression "pkg/front_end/testcases/general/bug21938.dart:9:4: Error: The method 'call' isn't defined for the class 'Object'.
- 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
x(3);
^";
^" in x{<unresolved>}.call(3);
f(5, 2);
invalid-expression "pkg/front_end/testcases/general/bug21938.dart:11:5: Error: The method 'call' isn't defined for the class 'Object'.
- 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
x.call();
^^^^";
^^^^" in x{<unresolved>}.call();
f.call;
f(5, 2);
}

View file

@ -30,18 +30,18 @@ static method test() → dynamic {
- 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
x();
^";
^" in x{<unresolved>}.call();
invalid-expression "pkg/front_end/testcases/general/bug21938.dart:9:4: Error: The method 'call' isn't defined for the class 'Object'.
- 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
x(3);
^";
^" in x{<unresolved>}.call(3);
f(5, 2);
invalid-expression "pkg/front_end/testcases/general/bug21938.dart:11:5: Error: The method 'call' isn't defined for the class 'Object'.
- 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
x.call();
^^^^";
^^^^" in x{<unresolved>}.call();
f.call;
f(5, 2);
}

View file

@ -51,15 +51,15 @@ static method main() → dynamic {
invalid-expression "pkg/front_end/testcases/general/cascade.dart:28:13: Error: The getter 'last' isn't defined for the class 'int'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'last'.
..first.last.toString()
^^^^".{core::Object::toString}(){() →* core::String*};
^^^^" in #t4.{core::Iterable::first}{core::int*}{<unresolved>}.last.{core::Object::toString}(){() →* core::String*};
invalid-expression "pkg/front_end/testcases/general/cascade.dart:29:12: Error: The operator '[]' isn't defined for the class 'int'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
..first[0].toString()
^".{core::Object::toString}(){() →* core::String*};
^" in #t4.{core::Iterable::first}{core::int*}{<unresolved>}.[](0).{core::Object::toString}(){() →* core::String*};
invalid-expression "pkg/front_end/testcases/general/cascade.dart:30:11: Error: The getter 'last' isn't defined for the class 'int'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'last'.
..[0].last.toString();
^^^^".{core::Object::toString}(){() →* core::String*};
^^^^" in #t4.{core::List::[]}(0){(core::int*) →* core::int*}{<unresolved>}.last.{core::Object::toString}(){() →* core::String*};
} =>#t4;
core::print(list);
}

View file

@ -51,15 +51,15 @@ static method main() → dynamic {
invalid-expression "pkg/front_end/testcases/general/cascade.dart:28:13: Error: The getter 'last' isn't defined for the class 'int'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'last'.
..first.last.toString()
^^^^".{core::Object::toString}(){() →* core::String*};
^^^^" in #t4.{core::Iterable::first}{core::int*}{<unresolved>}.last.{core::Object::toString}(){() →* core::String*};
invalid-expression "pkg/front_end/testcases/general/cascade.dart:29:12: Error: The operator '[]' isn't defined for the class 'int'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
..first[0].toString()
^".{core::Object::toString}(){() →* core::String*};
^" in #t4.{core::Iterable::first}{core::int*}{<unresolved>}.[](0).{core::Object::toString}(){() →* core::String*};
invalid-expression "pkg/front_end/testcases/general/cascade.dart:30:11: Error: The getter 'last' isn't defined for the class 'int'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'last'.
..[0].last.toString();
^^^^".{core::Object::toString}(){() →* core::String*};
^^^^" in #t4.{core::List::[]}(0){(core::int*) →* core::int*}{<unresolved>}.last.{core::Object::toString}(){() →* core::String*};
} =>#t4;
core::print(list);
}

View file

@ -39,7 +39,7 @@ static method test() → dynamic {
- 'C' is from 'pkg/front_end/testcases/general/continue_inference_after_error.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'missing'.
lib(new C().missing());
^^^^^^^" in null;
^^^^^^^" in new self::C::•(){<unresolved>}.missing() in null;
}
static method main() → dynamic {}

View file

@ -39,7 +39,7 @@ static method test() → dynamic {
- 'C' is from 'pkg/front_end/testcases/general/continue_inference_after_error.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'missing'.
lib(new C().missing());
^^^^^^^" in null;
^^^^^^^" in new self::C::•(){<unresolved>}.missing() in null;
}
static method main() → dynamic {}

View file

@ -47,11 +47,11 @@ abstract class _PlatformViewGestureMixin extends mai::RenderBox /*isMixinDeclara
- '_PlatformViewGestureMixin' is from 'pkg/front_end/testcases/general/crashes/crash_03/main.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named '_hitTestBehavior'.
_hitTestBehavior != PlatformViewHitTestBehavior.transparent;
^^^^^^^^^^^^^^^^" =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/general/crashes/crash_03/main.dart:9:27: Error: The getter 'PlatformViewHitTestBehavior' isn't defined for the class '_PlatformViewGestureMixin'.
^^^^^^^^^^^^^^^^" in this{<unresolved>}._hitTestBehavior =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/general/crashes/crash_03/main.dart:9:27: Error: The getter 'PlatformViewHitTestBehavior' isn't defined for the class '_PlatformViewGestureMixin'.
- '_PlatformViewGestureMixin' is from 'pkg/front_end/testcases/general/crashes/crash_03/main.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'PlatformViewHitTestBehavior'.
_hitTestBehavior != PlatformViewHitTestBehavior.transparent;
^^^^^^^^^^^^^^^^^^^^^^^^^^^"{dynamic}.transparent);
^^^^^^^^^^^^^^^^^^^^^^^^^^^" in this{<unresolved>}.PlatformViewHitTestBehavior{dynamic}.transparent);
}
static method main() → dynamic {}

View file

@ -38,11 +38,11 @@ abstract class _PlatformViewRenderBox&RenderBox&_PlatformViewGestureMixin extend
- '_PlatformViewGestureMixin' is from 'pkg/front_end/testcases/general/crashes/crash_03/main.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named '_hitTestBehavior'.
_hitTestBehavior != PlatformViewHitTestBehavior.transparent;
^^^^^^^^^^^^^^^^" =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/general/crashes/crash_03/main.dart:9:27: Error: The getter 'PlatformViewHitTestBehavior' isn't defined for the class '_PlatformViewGestureMixin'.
^^^^^^^^^^^^^^^^" in this{<unresolved>}._hitTestBehavior =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/general/crashes/crash_03/main.dart:9:27: Error: The getter 'PlatformViewHitTestBehavior' isn't defined for the class '_PlatformViewGestureMixin'.
- '_PlatformViewGestureMixin' is from 'pkg/front_end/testcases/general/crashes/crash_03/main.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'PlatformViewHitTestBehavior'.
_hitTestBehavior != PlatformViewHitTestBehavior.transparent;
^^^^^^^^^^^^^^^^^^^^^^^^^^^"{dynamic}.transparent);
^^^^^^^^^^^^^^^^^^^^^^^^^^^" in this{<unresolved>}.PlatformViewHitTestBehavior{dynamic}.transparent);
}
class PlatformViewRenderBox extends self::_PlatformViewRenderBox&RenderBox&_PlatformViewGestureMixin {
synthetic constructor •() → self::PlatformViewRenderBox
@ -55,11 +55,11 @@ abstract class _PlatformViewGestureMixin extends mai::RenderBox /*isMixinDeclara
- '_PlatformViewGestureMixin' is from 'pkg/front_end/testcases/general/crashes/crash_03/main.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named '_hitTestBehavior'.
_hitTestBehavior != PlatformViewHitTestBehavior.transparent;
^^^^^^^^^^^^^^^^" =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/general/crashes/crash_03/main.dart:9:27: Error: The getter 'PlatformViewHitTestBehavior' isn't defined for the class '_PlatformViewGestureMixin'.
^^^^^^^^^^^^^^^^" in this{<unresolved>}._hitTestBehavior =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/general/crashes/crash_03/main.dart:9:27: Error: The getter 'PlatformViewHitTestBehavior' isn't defined for the class '_PlatformViewGestureMixin'.
- '_PlatformViewGestureMixin' is from 'pkg/front_end/testcases/general/crashes/crash_03/main.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'PlatformViewHitTestBehavior'.
_hitTestBehavior != PlatformViewHitTestBehavior.transparent;
^^^^^^^^^^^^^^^^^^^^^^^^^^^"{dynamic}.transparent);
^^^^^^^^^^^^^^^^^^^^^^^^^^^" in this{<unresolved>}.PlatformViewHitTestBehavior{dynamic}.transparent);
}
static method main() → dynamic {}

View file

@ -32,7 +32,13 @@ class C extends core::Object {
static method test() → void {
self::C::m(a: invalid-expression "pkg/front_end/testcases/general/duplicated_named_args_3.dart:13:19: Error: Duplicated named argument 'a'.
C.m(a: 1, a: 2, a: 3);
^");
^" in block {
invalid-expression "pkg/front_end/testcases/general/duplicated_named_args_3.dart:13:13: Error: Duplicated named argument 'a'.
C.m(a: 1, a: 2, a: 3);
^" in block {
1;
} =>2;
} =>3);
}
static method main() → dynamic {}

View file

@ -32,7 +32,13 @@ class C extends core::Object {
static method test() → void {
self::C::m(a: invalid-expression "pkg/front_end/testcases/general/duplicated_named_args_3.dart:13:19: Error: Duplicated named argument 'a'.
C.m(a: 1, a: 2, a: 3);
^");
^" in block {
invalid-expression "pkg/front_end/testcases/general/duplicated_named_args_3.dart:13:13: Error: Duplicated named argument 'a'.
C.m(a: 1, a: 2, a: 3);
^" in block {
1;
} =>2;
} =>3);
}
static method main() → dynamic {}

View file

@ -137,6 +137,10 @@ class C extends self::Super {
for (final dynamic #t13 in <dynamic>[]) {
invalid-expression "pkg/front_end/testcases/general/for_in_without_declaration.dart:37:10: Error: The setter 'unresolved' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'.
for (unresolved in []) {}
^^^^^^^^^^" in this{<unresolved>}.unresolved = invalid-expression "pkg/front_end/testcases/general/for_in_without_declaration.dart:37:10: Error: The setter 'unresolved' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'.
for (unresolved in []) {}
^^^^^^^^^^";
@ -146,11 +150,15 @@ Try correcting the name to the name of an existing setter, or defining a setter
- 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'.
for (unresolved.foo in []) {}
^^^^^^^^^^"{<invalid>}.foo = #t14;
^^^^^^^^^^" in this{<unresolved>}.unresolved{<invalid>}.foo = #t14;
}
for (final dynamic #t15 in <dynamic>[]) {
invalid-expression "pkg/front_end/testcases/general/for_in_without_declaration.dart:39:12: Error: The setter 'unresolved' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'.
for (c.unresolved in []) {}
^^^^^^^^^^" in c{<unresolved>}.unresolved = invalid-expression "pkg/front_end/testcases/general/for_in_without_declaration.dart:39:12: Error: The setter 'unresolved' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'.
for (c.unresolved in []) {}
^^^^^^^^^^";

View file

@ -213,6 +213,10 @@ class C extends self::Super {
{
invalid-expression "pkg/front_end/testcases/general/for_in_without_declaration.dart:37:10: Error: The setter 'unresolved' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'.
for (unresolved in []) {}
^^^^^^^^^^" in this{<unresolved>}.unresolved = invalid-expression "pkg/front_end/testcases/general/for_in_without_declaration.dart:37:10: Error: The setter 'unresolved' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'.
for (unresolved in []) {}
^^^^^^^^^^";
@ -228,7 +232,7 @@ Try correcting the name to the name of an existing setter, or defining a setter
- 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'.
for (unresolved.foo in []) {}
^^^^^^^^^^"{<invalid>}.foo = #t14;
^^^^^^^^^^" in this{<unresolved>}.unresolved{<invalid>}.foo = #t14;
}
}
}
@ -239,6 +243,10 @@ Try correcting the name to the name of an existing getter, or defining a getter
{
invalid-expression "pkg/front_end/testcases/general/for_in_without_declaration.dart:39:12: Error: The setter 'unresolved' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'.
for (c.unresolved in []) {}
^^^^^^^^^^" in c{<unresolved>}.unresolved = invalid-expression "pkg/front_end/testcases/general/for_in_without_declaration.dart:39:12: Error: The setter 'unresolved' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'.
for (c.unresolved in []) {}
^^^^^^^^^^";

View file

@ -43,6 +43,6 @@ static method test() → dynamic {
invalid-expression "pkg/front_end/testcases/general/invalid_type.dart:13:8: Error: The method 'bar' isn't defined for the class 'Null'.
Try correcting the name to the name of an existing method, or defining a method named 'bar'.
null.bar();
^^^";
^^^" in null{<unresolved>}.bar();
}
static method main() → dynamic {}

View file

@ -43,7 +43,7 @@ static method test() → dynamic {
invalid-expression "pkg/front_end/testcases/general/invalid_type.dart:13:8: Error: The method 'bar' isn't defined for the class 'Null'.
Try correcting the name to the name of an existing method, or defining a method named 'bar'.
null.bar();
^^^";
^^^" in null{<unresolved>}.bar();
}
static method main() → dynamic {}

View file

@ -65,7 +65,11 @@ class PropertyState#1<I extends core::Object* = dynamic, O extends core::Object*
- 'Type' is from 'dart:core'.
Try correcting the operator to an existing operator, or defining a '>>' operator.
for (PropertyState<Object, Object>> state in _states) ;
^^")
^^" in (#C1){<unresolved>}.>>(invalid-expression "pkg/front_end/testcases/general/issue42997.dart:12:41: Error: The getter 'state' isn't defined for the class 'PropertyState#1<I, O>'.
- 'PropertyState#1' is from 'pkg/front_end/testcases/general/issue42997.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'state'.
for (PropertyState<Object, Object>> state in _states) ;
^^^^^" in this{<unresolved>}.state))
;
}
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode

View file

@ -65,7 +65,11 @@ class PropertyState#1<I extends core::Object* = dynamic, O extends core::Object*
- 'Type' is from 'dart:core'.
Try correcting the operator to an existing operator, or defining a '>>' operator.
for (PropertyState<Object, Object>> state in _states) ;
^^")
^^" in (#C1){<unresolved>}.>>(invalid-expression "pkg/front_end/testcases/general/issue42997.dart:12:41: Error: The getter 'state' isn't defined for the class 'PropertyState#1<I, O>'.
- 'PropertyState#1' is from 'pkg/front_end/testcases/general/issue42997.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'state'.
for (PropertyState<Object, Object>> state in _states) ;
^^^^^" in this{<unresolved>}.state))
;
}
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode

View file

@ -139,6 +139,6 @@ Try using a constructor or factory that is 'const'.
- 'B' is from 'pkg/front_end/testcases/general/many_errors.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
(new C()?.b ??= new B()).b;
^";
^" in (let final self::C* #t3 = new self::C::•() in #t3 == null ?{self::B*} null : let final self::B* #t4 = #t3.{self::C::b}{self::B*} in #t4 == null ?{self::B*} #t3.{self::C::b} = new self::B::•() : #t4){<unresolved>}.b;
}
static method main() → dynamic {}

View file

@ -139,6 +139,6 @@ Try using a constructor or factory that is 'const'.
- 'B' is from 'pkg/front_end/testcases/general/many_errors.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
(new C()?.b ??= new B()).b;
^";
^" in (let final self::C* #t3 = new self::C::•() in #t3 == null ?{self::B*} null : let final self::B* #t4 = #t3.{self::C::b}{self::B*} in #t4 == null ?{self::B*} #t3.{self::C::b} = new self::B::•() : #t4){<unresolved>}.b;
}
static method main() → dynamic {}

View file

@ -107,25 +107,25 @@ static field dynamic missingBinary = let final self::ClassWithProperty* #t1 = se
- 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'.
Try correcting the operator to an existing operator, or defining a '+' operator.
var missingBinary = classWithProperty.property += 2;
^" as{TypeError,ForDynamic} self::EmptyClass*;
^" in #t1.{self::ClassWithProperty::property}{self::EmptyClass*}{<unresolved>}.+(2) as{TypeError,ForDynamic} self::EmptyClass*;
static field dynamic missingIndexGet = let final self::ClassWithIndexSet* #t2 = self::classWithIndexSet in let final core::int* #t3 = 0 in let final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:28:40: Error: The operator '[]' isn't defined for the class 'ClassWithIndexSet'.
- 'ClassWithIndexSet' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
var missingIndexGet = classWithIndexSet[0] ??= 2;
^" in #t4 == null ?{dynamic} let final core::int* #t5 = 2 in let final void #t6 = #t2.{self::ClassWithIndexSet::[]=}(#t3, #t5){(core::int*, core::int*) →* void} in #t5 : #t4;
^" in #t2{<unresolved>}.[](#t3) in #t4 == null ?{dynamic} let final core::int* #t5 = 2 in let final void #t6 = #t2.{self::ClassWithIndexSet::[]=}(#t3, #t5){(core::int*, core::int*) →* void} in #t5 : #t4;
static field core::int* missingIndexSet = let final self::ClassWithIndexGet* #t7 = self::classWithIndexGet in let final core::int* #t8 = 0 in let final core::int* #t9 = #t7.{self::ClassWithIndexGet::[]}(#t8){(core::int*) →* core::int*} in #t9 == null ?{core::int*} let final core::int* #t10 = 2 in let final void #t11 = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:29:40: Error: The operator '[]=' isn't defined for the class 'ClassWithIndexGet'.
- 'ClassWithIndexGet' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
var missingIndexSet = classWithIndexGet[0] ??= 2;
^" in #t10 : #t9;
^" in #t7{<unresolved>}.[]=(#t8, #t10) in #t10 : #t9;
static field dynamic missingPropertyGet = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:30:37: Error: The getter 'property' isn't defined for the class 'EmptyClass'.
- 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'property'.
var missingPropertyGet = emptyClass.property;
^^^^^^^^";
^^^^^^^^" in self::emptyClass{<unresolved>}.property;
static field core::int* missingPropertySet = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:31:37: Error: The setter 'property' isn't defined for the class 'EmptyClass'.
- 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'property'.
var missingPropertySet = emptyClass.property = 42;
^^^^^^^^";
^^^^^^^^" in self::emptyClass{<unresolved>}.property = 42;
static method main() → dynamic {}

View file

@ -107,27 +107,27 @@ static field dynamic missingBinary = let final self::ClassWithProperty* #t1 = se
- 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'.
Try correcting the operator to an existing operator, or defining a '+' operator.
var missingBinary = classWithProperty.property += 2;
^";
^" in #t1.{self::ClassWithProperty::property}{self::EmptyClass*}{<unresolved>}.+(2);
static field dynamic missingIndexGet = let final self::ClassWithIndexSet* #t2 = self::classWithIndexSet in let final core::int* #t3 = 0 in let final invalid-type #t4 = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:28:40: Error: The operator '[]' isn't defined for the class 'ClassWithIndexSet'.
- 'ClassWithIndexSet' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
var missingIndexGet = classWithIndexSet[0] ??= 2;
^" in #t4 == null ?{dynamic} let final core::int* #t5 = 2 in let final void #t6 = #t2.{self::ClassWithIndexSet::[]=}(#t3, #t5){(core::int*, core::int*) →* void} in #t5 : #t4;
^" in #t2{<unresolved>}.[](#t3) in #t4 == null ?{dynamic} let final core::int* #t5 = 2 in let final void #t6 = #t2.{self::ClassWithIndexSet::[]=}(#t3, #t5){(core::int*, core::int*) →* void} in #t5 : #t4;
static field core::int* missingIndexSet = let final self::ClassWithIndexGet* #t7 = self::classWithIndexGet in let final core::int* #t8 = 0 in let final core::int* #t9 = #t7.{self::ClassWithIndexGet::[]}(#t8){(core::int*) →* core::int*} in #t9 == null ?{core::int*} let final core::int* #t10 = 2 in let final void #t11 = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:29:40: Error: The operator '[]=' isn't defined for the class 'ClassWithIndexGet'.
- 'ClassWithIndexGet' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
var missingIndexSet = classWithIndexGet[0] ??= 2;
^" in #t10 : #t9;
^" in #t7{<unresolved>}.[]=(#t8, #t10) in #t10 : #t9;
static field dynamic missingPropertyGet = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:30:37: Error: The getter 'property' isn't defined for the class 'EmptyClass'.
- 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'property'.
var missingPropertyGet = emptyClass.property;
^^^^^^^^";
^^^^^^^^" in self::emptyClass{<unresolved>}.property;
static field core::int* missingPropertySet = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:31:37: Error: The setter 'property' isn't defined for the class 'EmptyClass'.
- 'EmptyClass' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'property'.
var missingPropertySet = emptyClass.property = 42;
^^^^^^^^";
^^^^^^^^" in self::emptyClass{<unresolved>}.property = 42;
static method main() → dynamic {}

View file

@ -226,98 +226,98 @@ static method main() → dynamic {
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '<' operator.
print(foo < 2);
^");
^" in foo{<unresolved>}.<(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:13:13: Error: The operator '>' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '>' operator.
print(foo > 2);
^");
^" in foo{<unresolved>}.>(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:14:13: Error: The operator '<=' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '<=' operator.
print(foo <= 2);
^^");
^^" in foo{<unresolved>}.<=(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:15:13: Error: The operator '>=' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '>=' operator.
print(foo >= 2);
^^");
^^" in foo{<unresolved>}.>=(2));
core::print(foo =={self::Foo::==}{(dynamic) →* core::bool*} 2);
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:17:13: Error: The operator '-' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '-' operator.
print(foo - 2);
^");
^" in foo{<unresolved>}.-(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:18:13: Error: The operator '+' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '+' operator.
print(foo + 2);
^");
^" in foo{<unresolved>}.+(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:19:13: Error: The operator '/' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '/' operator.
print(foo / 2);
^");
^" in foo{<unresolved>}./(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:20:13: Error: The operator '~/' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '~/' operator.
print(foo ~/ 2);
^^");
^^" in foo{<unresolved>}.~/(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:21:13: Error: The operator '*' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '*' operator.
print(foo * 2);
^");
^" in foo{<unresolved>}.*(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:22:13: Error: The operator '%' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '%' operator.
print(foo % 2);
^");
^" in foo{<unresolved>}.%(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:23:13: Error: The operator '|' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '|' operator.
print(foo | 2);
^");
^" in foo{<unresolved>}.|(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:24:13: Error: The operator '^' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '^' operator.
print(foo ^ 2);
^");
^" in foo{<unresolved>}.^(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:25:13: Error: The operator '&' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '&' operator.
print(foo & 2);
^");
^" in foo{<unresolved>}.&(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:26:13: Error: The operator '<<' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '<<' operator.
print(foo << 2);
^^");
^^" in foo{<unresolved>}.<<(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:27:13: Error: The operator '>>' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '>>' operator.
print(foo >> 2);
^^");
^^" in foo{<unresolved>}.>>(2));
core::print(let final self::Foo* #t1 = foo in let final core::int* #t2 = 2 in let final core::int* #t3 = 2 in let final void #t4 = invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:29:12: Error: The operator '[]=' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
print(foo[2] = 2);
^" in #t3);
^" in #t1{<unresolved>}.[]=(#t2, #t3) in #t3);
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:30:12: Error: The operator '[]' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
print(foo[2]);
^");
^" in foo{<unresolved>}.[](2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:31:9: Error: The operator '~' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '~' operator.
print(~foo);
^");
^" in foo{<unresolved>}.~());
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:32:9: Error: The operator 'unary-' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a 'unary-' operator.
print(-foo);
^");
^" in foo{<unresolved>}.unary-());
core::print(<invalid-type>[]);
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:37:9: Error: This couldn't be parsed.
print(>foo);

View file

@ -226,98 +226,98 @@ static method main() → dynamic {
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '<' operator.
print(foo < 2);
^");
^" in foo{<unresolved>}.<(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:13:13: Error: The operator '>' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '>' operator.
print(foo > 2);
^");
^" in foo{<unresolved>}.>(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:14:13: Error: The operator '<=' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '<=' operator.
print(foo <= 2);
^^");
^^" in foo{<unresolved>}.<=(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:15:13: Error: The operator '>=' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '>=' operator.
print(foo >= 2);
^^");
^^" in foo{<unresolved>}.>=(2));
core::print(foo =={self::Foo::==}{(dynamic) →* core::bool*} 2);
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:17:13: Error: The operator '-' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '-' operator.
print(foo - 2);
^");
^" in foo{<unresolved>}.-(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:18:13: Error: The operator '+' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '+' operator.
print(foo + 2);
^");
^" in foo{<unresolved>}.+(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:19:13: Error: The operator '/' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '/' operator.
print(foo / 2);
^");
^" in foo{<unresolved>}./(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:20:13: Error: The operator '~/' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '~/' operator.
print(foo ~/ 2);
^^");
^^" in foo{<unresolved>}.~/(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:21:13: Error: The operator '*' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '*' operator.
print(foo * 2);
^");
^" in foo{<unresolved>}.*(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:22:13: Error: The operator '%' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '%' operator.
print(foo % 2);
^");
^" in foo{<unresolved>}.%(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:23:13: Error: The operator '|' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '|' operator.
print(foo | 2);
^");
^" in foo{<unresolved>}.|(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:24:13: Error: The operator '^' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '^' operator.
print(foo ^ 2);
^");
^" in foo{<unresolved>}.^(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:25:13: Error: The operator '&' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '&' operator.
print(foo & 2);
^");
^" in foo{<unresolved>}.&(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:26:13: Error: The operator '<<' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '<<' operator.
print(foo << 2);
^^");
^^" in foo{<unresolved>}.<<(2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:27:13: Error: The operator '>>' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '>>' operator.
print(foo >> 2);
^^");
^^" in foo{<unresolved>}.>>(2));
core::print(let final self::Foo* #t1 = foo in let final core::int* #t2 = 2 in let final core::int* #t3 = 2 in let final void #t4 = invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:29:12: Error: The operator '[]=' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
print(foo[2] = 2);
^" in #t3);
^" in #t1{<unresolved>}.[]=(#t2, #t3) in #t3);
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:30:12: Error: The operator '[]' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
print(foo[2]);
^");
^" in foo{<unresolved>}.[](2));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:31:9: Error: The operator '~' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a '~' operator.
print(~foo);
^");
^" in foo{<unresolved>}.~());
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:32:9: Error: The operator 'unary-' isn't defined for the class 'Foo'.
- 'Foo' is from 'pkg/front_end/testcases/general/operator_method_not_found.dart'.
Try correcting the operator to an existing operator, or defining a 'unary-' operator.
print(-foo);
^");
^" in foo{<unresolved>}.unary-());
core::print(core::_GrowableList::•<invalid-type>(0));
core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:37:9: Error: This couldn't be parsed.
print(>foo);

View file

@ -118,58 +118,66 @@ class Class2 extends self::Class1 {
- 'Class1' is from 'pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart'.
Try correcting the operator to an existing operator, or defining a 'unary-' operator.
-new Class1();
^";
^" in new self::Class1::_(){<unresolved>}.unary-();
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:22:15: Error: The operator '-' isn't defined for the class 'String'.
Try correcting the operator to an existing operator, or defining a '-' operator.
('' + '') - new Class1();
^";
^" in "".{core::String::+}(""){(core::String) → core::String}{<unresolved>}.-(new self::Class1::_());
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:24:12: Error: The operator '[]=' isn't defined for the class 'int'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
(0 + 1)[0] = new Class1();
^";
^" in 0.{core::num::+}(1){(core::num) → core::int}{<unresolved>}.[]=(0, new self::Class1::_());
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:25:8: Error: The operator '[]=' isn't defined for the class 'Class2'.
- 'Class2' is from 'pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
_c2[0] = new Class1();
^";
^" in this.{self::Class2::_c2}{self::Class2}{<unresolved>}.[]=(0, new self::Class1::_());
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:27:12: Error: The operator '[]' isn't defined for the class 'int'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
(0 + 1)[new Class1()];
^";
^" in 0.{core::num::+}(1){(core::num) → core::int}{<unresolved>}.[](new self::Class1::_());
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:29:18: Error: The getter 'foo' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'foo'.
new Class1().foo;
^^^";
^^^" in new self::Class1::_(){<unresolved>}.foo;
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:31:13: Error: The setter 'foo' isn't defined for the class 'int'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'foo'.
(0 + 1).foo = new Class1();
^^^";
^^^" in 0.{core::num::+}(1){(core::num) → core::int}{<unresolved>}.foo = new self::Class1::_();
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:33:18: Error: The method 'foo' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'foo'.
new Class1().foo();
^^^";
^^^" in new self::Class1::_(){<unresolved>}.foo();
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:35:17: Error: The method 'call' isn't defined for the class 'Class1'.
- 'Class1' is from 'pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
new Class1()();
^";
^" in new self::Class1::_(){<unresolved>}.call();
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:37:23: Error: 'field' isn't a function or method and can't be invoked.
new Class1().field();
^^^^...";
^^^^..." in new self::Class1::_().{self::Class1::field}{core::int}{<unresolved>}.call();
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:39:24: Error: 'getter' isn't a function or method and can't be invoked.
new Class1().getter();
^^^^...";
^^^^..." in new self::Class1::_().{self::Class1::getter}{core::int}{<unresolved>}.call();
let final self::Class2 #t1 = this.{self::Class2::_c2}{self::Class2} in let final self::Class1 #t2 = new self::Class1::_() in invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:41:8: Error: 'call' isn't a function or method and can't be invoked.
_c2(new Class1());
^^^^";
^^^^" in #t1.{self::Class2::call}{core::int}{<unresolved>}.call(#t2);
this.{self::Class2::method}(a: invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:43:18: Error: Duplicated named argument 'a'.
method(a: 0, a: new Class1());
^"){({a: dynamic}) → dynamic};
^" in block {
0;
} =>new self::Class1::_()){({a: dynamic}) → dynamic};
this.{self::Class2::method}(a: invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:45:24: Error: Duplicated named argument 'a'.
method(a: 0, a: 1, a: new Class1());
^"){({a: dynamic}) → dynamic};
^" in block {
invalid-expression "pkg/front_end/testcases/general/redirecting_factory_invocation_in_invalid.dart:45:18: Error: Duplicated named argument 'a'.
method(a: 0, a: 1, a: new Class1());
^" in block {
0;
} =>1;
} =>new self::Class1::_()){({a: dynamic}) → dynamic};
super.[](new self::Class1::_());
super.[]=(0, new self::Class1::_());
super.foo = new self::Class1::_();

View file

@ -41,7 +41,7 @@ class NumClass<T extends core::num*, S extends self::NumClass::T* = core::num*>
return this.{self::NumClass::field1}{self::NumClass::T*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/type_variable_bound_access.dart:22:36: Error: The getter 'length' isn't defined for the class 'num'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'length'.
num method2() => field1 + field2.length;
^^^^^^" as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*};
^^^^^^" in this.{self::NumClass::field2}{self::NumClass::S*}{<unresolved>}.length as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*};
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode
abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf
abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf

View file

@ -41,7 +41,7 @@ class NumClass<T extends core::num*, S extends self::NumClass::T* = core::num*>
return this.{self::NumClass::field1}{self::NumClass::T*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/type_variable_bound_access.dart:22:36: Error: The getter 'length' isn't defined for the class 'num'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'length'.
num method2() => field1 + field2.length;
^^^^^^"){(core::num*) →* core::num*};
^^^^^^" in this.{self::NumClass::field2}{self::NumClass::S*}{<unresolved>}.length){(core::num*) →* core::num*};
abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode
abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf
abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf

View file

@ -46,18 +46,18 @@ static method test(self::C* c) → void {
- 'C' is from 'pkg/front_end/testcases/general/undefined.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'y'.
c.y;
^";
^" in c{<unresolved>}.y;
c.{self::C::f}(){() →* void};
invalid-expression "pkg/front_end/testcases/general/undefined.dart:14:5: Error: The method 'g' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/undefined.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'g'.
c.g();
^";
^" in c{<unresolved>}.g();
c.{self::C::x} = null;
invalid-expression "pkg/front_end/testcases/general/undefined.dart:16:5: Error: The setter 'y' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/undefined.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'y'.
c.y = null;
^";
^" in c{<unresolved>}.y = null;
}
static method main() → dynamic {}

View file

@ -46,18 +46,18 @@ static method test(self::C* c) → void {
- 'C' is from 'pkg/front_end/testcases/general/undefined.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'y'.
c.y;
^";
^" in c{<unresolved>}.y;
c.{self::C::f}(){() →* void};
invalid-expression "pkg/front_end/testcases/general/undefined.dart:14:5: Error: The method 'g' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/undefined.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'g'.
c.g();
^";
^" in c{<unresolved>}.g();
c.{self::C::x} = null;
invalid-expression "pkg/front_end/testcases/general/undefined.dart:16:5: Error: The setter 'y' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/undefined.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'y'.
c.y = null;
^";
^" in c{<unresolved>}.y = null;
}
static method main() → dynamic {}

View file

@ -39,11 +39,11 @@ static method test(self::C* c) → void {
- 'C' is from 'pkg/front_end/testcases/general/undefined_getter_in_compound_assignment.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'x'.
c.x += 1;
^"{dynamic}.+(1);
^" in #t1{<unresolved>}.x{dynamic}.+(1);
let final self::C* #t2 = c in invalid-expression "pkg/front_end/testcases/general/undefined_getter_in_compound_assignment.dart:12:5: Error: The getter 'x' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/undefined_getter_in_compound_assignment.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'x'.
c.x ??= 1;
^" == null ?{dynamic} #t2.{self::C::x} = 1 : null;
^" in #t2{<unresolved>}.x == null ?{dynamic} #t2.{self::C::x} = 1 : null;
}
static method main() → dynamic {}

View file

@ -39,11 +39,11 @@ static method test(self::C* c) → void {
- 'C' is from 'pkg/front_end/testcases/general/undefined_getter_in_compound_assignment.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'x'.
c.x += 1;
^"{dynamic}.+(1);
^" in #t1{<unresolved>}.x{dynamic}.+(1);
let final self::C* #t2 = c in invalid-expression "pkg/front_end/testcases/general/undefined_getter_in_compound_assignment.dart:12:5: Error: The getter 'x' isn't defined for the class 'C'.
- 'C' is from 'pkg/front_end/testcases/general/undefined_getter_in_compound_assignment.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'x'.
c.x ??= 1;
^" == null ?{dynamic} #t2.{self::C::x} = 1 : null;
^" in #t2{<unresolved>}.x == null ?{dynamic} #t2.{self::C::x} = 1 : null;
}
static method main() → dynamic {}

View file

@ -98,32 +98,32 @@ class D extends self::C {
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'missingField'.
this.missingField;
^^^^^^^^^^^^";
^^^^^^^^^^^^" in this{<unresolved>}.missingField;
invalid-expression "pkg/front_end/testcases/general/warn_unresolved_sends.dart:49:10: Error: The setter 'missingField' isn't defined for the class 'D'.
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'missingField'.
this.missingField = 0;
^^^^^^^^^^^^";
^^^^^^^^^^^^" in this{<unresolved>}.missingField = 0;
invalid-expression "pkg/front_end/testcases/general/warn_unresolved_sends.dart:50:10: Error: The method 'missingMethod' isn't defined for the class 'D'.
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'missingMethod'.
this.missingMethod();
^^^^^^^^^^^^^";
^^^^^^^^^^^^^" in this{<unresolved>}.missingMethod();
invalid-expression "pkg/front_end/testcases/general/warn_unresolved_sends.dart:52:5: Error: The getter 'missingField' isn't defined for the class 'D'.
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'missingField'.
missingField;
^^^^^^^^^^^^";
^^^^^^^^^^^^" in this{<unresolved>}.missingField;
invalid-expression "pkg/front_end/testcases/general/warn_unresolved_sends.dart:53:5: Error: The setter 'missingField' isn't defined for the class 'D'.
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'missingField'.
missingField = 0;
^^^^^^^^^^^^";
^^^^^^^^^^^^" in this{<unresolved>}.missingField = 0;
invalid-expression "pkg/front_end/testcases/general/warn_unresolved_sends.dart:54:5: Error: The method 'missingMethod' isn't defined for the class 'D'.
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'missingMethod'.
missingMethod();
^^^^^^^^^^^^^";
^^^^^^^^^^^^^" in this{<unresolved>}.missingMethod();
}
}
class E extends self::D {

View file

@ -98,32 +98,32 @@ class D extends self::C {
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'missingField'.
this.missingField;
^^^^^^^^^^^^";
^^^^^^^^^^^^" in this{<unresolved>}.missingField;
invalid-expression "pkg/front_end/testcases/general/warn_unresolved_sends.dart:49:10: Error: The setter 'missingField' isn't defined for the class 'D'.
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'missingField'.
this.missingField = 0;
^^^^^^^^^^^^";
^^^^^^^^^^^^" in this{<unresolved>}.missingField = 0;
invalid-expression "pkg/front_end/testcases/general/warn_unresolved_sends.dart:50:10: Error: The method 'missingMethod' isn't defined for the class 'D'.
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'missingMethod'.
this.missingMethod();
^^^^^^^^^^^^^";
^^^^^^^^^^^^^" in this{<unresolved>}.missingMethod();
invalid-expression "pkg/front_end/testcases/general/warn_unresolved_sends.dart:52:5: Error: The getter 'missingField' isn't defined for the class 'D'.
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'missingField'.
missingField;
^^^^^^^^^^^^";
^^^^^^^^^^^^" in this{<unresolved>}.missingField;
invalid-expression "pkg/front_end/testcases/general/warn_unresolved_sends.dart:53:5: Error: The setter 'missingField' isn't defined for the class 'D'.
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'missingField'.
missingField = 0;
^^^^^^^^^^^^";
^^^^^^^^^^^^" in this{<unresolved>}.missingField = 0;
invalid-expression "pkg/front_end/testcases/general/warn_unresolved_sends.dart:54:5: Error: The method 'missingMethod' isn't defined for the class 'D'.
- 'D' is from 'pkg/front_end/testcases/general/warn_unresolved_sends.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'missingMethod'.
missingMethod();
^^^^^^^^^^^^^";
^^^^^^^^^^^^^" in this{<unresolved>}.missingMethod();
}
}
class E extends self::D {

View file

@ -37,6 +37,6 @@ library from "org-dartlang-test:///main.dart" as main {
static method main() → dynamic {
dart.core::Object* o = 1;
invalid-expression "org-dartlang-test:///main.dart:5:5: Error: The property 'onObject' is defined in multiple extensions for 'Object' and neither is more specific.\n - 'Object' is from 'dart:core'.\nTry using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.\n o.onObject;\n ^^^^^^^^";
invalid-expression "org-dartlang-test:///main.dart:5:5: Error: The property 'onObject' is defined in multiple extensions for 'Object' and neither is more specific.\n - 'Object' is from 'dart:core'.\nTry using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.\n o.onObject;\n ^^^^^^^^" in o{<unresolved>}.onObject;
}
}

View file

@ -37,6 +37,6 @@ library from "org-dartlang-test:///main.dart" as main {
static method main() → dynamic {
dart.core::Object* o = 1;
invalid-expression "org-dartlang-test:///main.dart:5:5: Error: The property 'onObject' is defined in multiple extensions for 'Object' and neither is more specific.\n - 'Object' is from 'dart:core'.\nTry using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.\n o.onObject;\n ^^^^^^^^";
invalid-expression "org-dartlang-test:///main.dart:5:5: Error: The property 'onObject' is defined in multiple extensions for 'Object' and neither is more specific.\n - 'Object' is from 'dart:core'.\nTry using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.\n o.onObject;\n ^^^^^^^^" in o{<unresolved>}.onObject;
}
}

View file

@ -1,2 +1,2 @@
method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
return dart.core::print(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:14: Error: The method 'parseInt' isn't defined for the class 'String'.\nTry correcting the name to the name of an existing method, or defining a method named 'parseInt'.\nprint(\"1234\".parseInt())\n ^^^^^^^^");
return dart.core::print(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:14: Error: The method 'parseInt' isn't defined for the class 'String'.\nTry correcting the name to the name of an existing method, or defining a method named 'parseInt'.\nprint(\"1234\".parseInt())\n ^^^^^^^^" in "1234"{<unresolved>}.parseInt());

View file

@ -1,2 +1,2 @@
method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
return dart.core::print(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:14: Error: The method 'parseInt' isn't defined for the class 'String'.\nTry correcting the name to the name of an existing method, or defining a method named 'parseInt'.\nprint(\"1234\".parseInt())\n ^^^^^^^^");
return dart.core::print(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:14: Error: The method 'parseInt' isn't defined for the class 'String'.\nTry correcting the name to the name of an existing method, or defining a method named 'parseInt'.\nprint(\"1234\".parseInt())\n ^^^^^^^^" in "1234"{<unresolved>}.parseInt());

View file

@ -1,2 +1,2 @@
method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
return dart.core::print(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:14: Error: The method 'parseInt' isn't defined for the class 'String'.\nTry correcting the name to the name of an existing method, or defining a method named 'parseInt'.\nprint(\"1234\".parseInt())\n ^^^^^^^^");
return dart.core::print(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:14: Error: The method 'parseInt' isn't defined for the class 'String'.\nTry correcting the name to the name of an existing method, or defining a method named 'parseInt'.\nprint(\"1234\".parseInt())\n ^^^^^^^^" in "1234"{<unresolved>}.parseInt());

View file

@ -1,2 +1,2 @@
method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
return dart.core::print(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:14: Error: The method 'parseInt' isn't defined for the class 'String'.\nTry correcting the name to the name of an existing method, or defining a method named 'parseInt'.\nprint(\"1234\".parseInt())\n ^^^^^^^^");
return dart.core::print(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:14: Error: The method 'parseInt' isn't defined for the class 'String'.\nTry correcting the name to the name of an existing method, or defining a method named 'parseInt'.\nprint(\"1234\".parseInt())\n ^^^^^^^^" in "1234"{<unresolved>}.parseInt());

View file

@ -110,7 +110,7 @@ static method test() → void {
(core::int*) →* core::String* l3 = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:63:14: Error: The method 'substring' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'substring'.
.substring(3);
^^^^^^^^^" as{TypeError,ForDynamic} core::String*;
^^^^^^^^^" in x{<unresolved>}.substring(3) as{TypeError,ForDynamic} core::String*;
(core::String*) →* core::String* l4 = (core::String* x) → core::String* => x.{core::String::substring}(3){(core::int*, [core::int*]) →* core::String*};
}
}

View file

@ -110,7 +110,7 @@ static method test() → void {
(core::int*) →* core::String* l3 = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:63:14: Error: The method 'substring' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'substring'.
.substring(3);
^^^^^^^^^";
^^^^^^^^^" in x{<unresolved>}.substring(3);
(core::String*) →* core::String* l4 = (core::String* x) → core::String* => x.{core::String::substring}(3){(core::int*, [core::int*]) →* core::String*};
}
}

View file

@ -126,7 +126,7 @@ static method test() → void {
y = <T extends core::Object* = dynamic>(core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:66:10: Error: The method 'substring' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'substring'.
.substring(3);
^^^^^^^^^" as{TypeError,ForDynamic} core::String*;
^^^^^^^^^" in x{<unresolved>}.substring(3) as{TypeError,ForDynamic} core::String*;
<T extends core::Object* = dynamic>(core::String*) →* core::String* z = string2String;
z = <T extends core::Object* = dynamic>(core::String* x) → core::String* => x.{core::String::substring}(3){(core::int*, [core::int*]) →* core::String*};
}

View file

@ -126,7 +126,7 @@ static method test() → void {
y = <T extends core::Object* = dynamic>(core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:66:10: Error: The method 'substring' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'substring'.
.substring(3);
^^^^^^^^^";
^^^^^^^^^" in x{<unresolved>}.substring(3);
<T extends core::Object* = dynamic>(core::String*) →* core::String* z = string2String;
z = <T extends core::Object* = dynamic>(core::String* x) → core::String* => x.{core::String::substring}(3){(core::int*, [core::int*]) →* core::String*};
}

Some files were not shown because too many files have changed in this diff Show more