mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:49:43 +00:00
[cfe] Add UnresolvedKind for fine grained unresolved reporting
- including tests for issues 46719 and 46887 Change-Id: I601fcfcb956e059f502cbece29fb2a6a00f68846 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210464 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
This commit is contained in:
parent
7da68152fb
commit
b3af778a38
|
@ -6726,6 +6726,25 @@ const MessageCode messageMapLiteralTypeArgumentMismatch = const MessageCode(
|
|||
analyzerCodes: <String>["EXPECTED_TWO_MAP_TYPE_ARGUMENTS"],
|
||||
message: r"""A map literal requires exactly two type arguments.""");
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Template<Message Function(String name)> templateMemberNotFound =
|
||||
const Template<Message Function(String name)>(
|
||||
messageTemplate: r"""Member not found: '#name'.""",
|
||||
withArguments: _withArgumentsMemberNotFound);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Code<Message Function(String name)> codeMemberNotFound =
|
||||
const Code<Message Function(String name)>("MemberNotFound",
|
||||
analyzerCodes: <String>["UNDEFINED_GETTER"]);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
Message _withArgumentsMemberNotFound(String name) {
|
||||
if (name.isEmpty) throw 'No name provided';
|
||||
name = demangleMixinApplicationName(name);
|
||||
return new Message(codeMemberNotFound,
|
||||
message: """Member not found: '${name}'.""", arguments: {'name': name});
|
||||
}
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Code<Null> codeMemberWithSameNameAsClass =
|
||||
messageMemberWithSameNameAsClass;
|
||||
|
@ -7129,6 +7148,25 @@ const MessageCode messageMultipleWith = const MessageCode("MultipleWith",
|
|||
message: r"""Each class definition can have at most one with clause.""",
|
||||
tip: r"""Try combining all of the with clauses into a single clause.""");
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Template<Message Function(String name)> templateNameNotFound =
|
||||
const Template<Message Function(String name)>(
|
||||
messageTemplate: r"""Undefined name '#name'.""",
|
||||
withArguments: _withArgumentsNameNotFound);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Code<Message Function(String name)> codeNameNotFound =
|
||||
const Code<Message Function(String name)>("NameNotFound",
|
||||
analyzerCodes: <String>["UNDEFINED_NAME"]);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
Message _withArgumentsNameNotFound(String name) {
|
||||
if (name.isEmpty) throw 'No name provided';
|
||||
name = demangleMixinApplicationName(name);
|
||||
return new Message(codeNameNotFound,
|
||||
message: """Undefined name '${name}'.""", arguments: {'name': name});
|
||||
}
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Code<Null> codeNamedFunctionExpression = messageNamedFunctionExpression;
|
||||
|
||||
|
@ -9170,6 +9208,26 @@ Message _withArgumentsSuperclassHasNoGetter(String name) {
|
|||
arguments: {'name': name});
|
||||
}
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Template<Message Function(String name)> templateSuperclassHasNoMember =
|
||||
const Template<Message Function(String name)>(
|
||||
messageTemplate: r"""Superclass has no member named '#name'.""",
|
||||
withArguments: _withArgumentsSuperclassHasNoMember);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Code<Message Function(String name)> codeSuperclassHasNoMember =
|
||||
const Code<Message Function(String name)>("SuperclassHasNoMember",
|
||||
analyzerCodes: <String>["UNDEFINED_SUPER_GETTER"]);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
Message _withArgumentsSuperclassHasNoMember(String name) {
|
||||
if (name.isEmpty) throw 'No name provided';
|
||||
name = demangleMixinApplicationName(name);
|
||||
return new Message(codeSuperclassHasNoMember,
|
||||
message: """Superclass has no member named '${name}'.""",
|
||||
arguments: {'name': name});
|
||||
}
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Template<Message Function(String name)> templateSuperclassHasNoMethod =
|
||||
const Template<Message Function(String name)>(
|
||||
|
|
|
@ -181,7 +181,7 @@ void runSharedTests(SetupCompilerOptions setup, TestDriver driver) {
|
|||
await driver.check(
|
||||
breakpointId: 'bp',
|
||||
expression: 'typo',
|
||||
expectedError: "Error: Getter not found: 'typo'");
|
||||
expectedError: "Error: Undefined name 'typo'");
|
||||
});
|
||||
|
||||
test('local (trimmed scope)', () async {
|
||||
|
@ -223,7 +223,7 @@ void runSharedTests(SetupCompilerOptions setup, TestDriver driver) {
|
|||
await driver.check(
|
||||
breakpointId: 'bp',
|
||||
expression: 'typo',
|
||||
expectedError: "Getter not found: \'typo\'");
|
||||
expectedError: "Undefined name \'typo\'");
|
||||
});
|
||||
|
||||
test('local', () async {
|
||||
|
@ -374,7 +374,7 @@ void runSharedTests(SetupCompilerOptions setup, TestDriver driver) {
|
|||
await driver.check(
|
||||
breakpointId: 'globalFunctionBP',
|
||||
expression: 'typo',
|
||||
expectedError: "Getter not found: 'typo'.");
|
||||
expectedError: "Undefined name 'typo'.");
|
||||
});
|
||||
|
||||
test('local with primitive type', () async {
|
||||
|
@ -720,7 +720,7 @@ void runSharedTests(SetupCompilerOptions setup, TestDriver driver) {
|
|||
await driver.check(
|
||||
breakpointId: 'bp',
|
||||
expression: 'typo',
|
||||
expectedError: "Getter not found: 'typo'.");
|
||||
expectedError: "Undefined name 'typo'.");
|
||||
});
|
||||
|
||||
test('expression using captured variables', () async {
|
||||
|
@ -894,7 +894,7 @@ void runSharedTests(SetupCompilerOptions setup, TestDriver driver) {
|
|||
await driver.check(
|
||||
breakpointId: 'thenBP',
|
||||
expression: 'z',
|
||||
expectedError: "Error: Getter not found: 'z'");
|
||||
expectedError: "Error: Undefined name 'z'");
|
||||
});
|
||||
|
||||
test('(else) expression using local', () async {
|
||||
|
@ -906,7 +906,7 @@ void runSharedTests(SetupCompilerOptions setup, TestDriver driver) {
|
|||
await driver.check(
|
||||
breakpointId: 'elseBP',
|
||||
expression: 'y',
|
||||
expectedError: "Error: Getter not found: 'y'");
|
||||
expectedError: "Error: Undefined name 'y'");
|
||||
});
|
||||
|
||||
test('(post) expression using local', () async {
|
||||
|
@ -918,14 +918,14 @@ void runSharedTests(SetupCompilerOptions setup, TestDriver driver) {
|
|||
await driver.check(
|
||||
breakpointId: 'postBP',
|
||||
expression: 'z',
|
||||
expectedError: "Error: Getter not found: 'z'");
|
||||
expectedError: "Error: Undefined name 'z'");
|
||||
});
|
||||
|
||||
test('(post) expression using local out of scope', () async {
|
||||
await driver.check(
|
||||
breakpointId: 'postBP',
|
||||
expression: 'y',
|
||||
expectedError: "Error: Getter not found: 'y'");
|
||||
expectedError: "Error: Undefined name 'y'");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ import 'constness.dart' show Constness;
|
|||
|
||||
import 'expression_generator.dart';
|
||||
|
||||
import 'expression_generator_helper.dart' show ExpressionGeneratorHelper;
|
||||
import 'expression_generator_helper.dart';
|
||||
|
||||
import 'forest.dart' show Forest;
|
||||
|
||||
|
@ -667,7 +667,8 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
if (expression is Identifier) {
|
||||
Identifier identifier = expression;
|
||||
expression = new UnresolvedNameGenerator(this, identifier.token,
|
||||
new Name(identifier.name, libraryBuilder.nameOrigin));
|
||||
new Name(identifier.name, libraryBuilder.nameOrigin),
|
||||
unresolvedReadKind: UnresolvedKind.Unknown);
|
||||
}
|
||||
if (name?.isNotEmpty ?? false) {
|
||||
Token period = periodBeforeName ?? beginToken.next!.next!;
|
||||
|
@ -1926,12 +1927,11 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
}
|
||||
|
||||
@override
|
||||
Expression throwNoSuchMethodError(
|
||||
Expression buildUnresolvedError(
|
||||
Expression receiver, String name, Arguments arguments, int charOffset,
|
||||
{Member? candidate,
|
||||
bool isSuper: false,
|
||||
bool isGetter: false,
|
||||
bool isSetter: false,
|
||||
required UnresolvedKind kind,
|
||||
bool isStatic: false,
|
||||
LocatedMessage? message}) {
|
||||
int length = name.length;
|
||||
|
@ -1967,18 +1967,37 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
context = [contextMessage.withLocation(uri, offset, length)];
|
||||
}
|
||||
if (message == null) {
|
||||
if (isGetter) {
|
||||
message = warnUnresolvedGet(kernelName, charOffset,
|
||||
isSuper: isSuper, reportWarning: false, context: context)
|
||||
.withLocation(uri, charOffset, length);
|
||||
} else if (isSetter) {
|
||||
message = warnUnresolvedSet(kernelName, charOffset,
|
||||
isSuper: isSuper, reportWarning: false, context: context)
|
||||
.withLocation(uri, charOffset, length);
|
||||
} else {
|
||||
message = warnUnresolvedMethod(kernelName, charOffset,
|
||||
isSuper: isSuper, reportWarning: false, context: context)
|
||||
.withLocation(uri, charOffset, length);
|
||||
switch (kind) {
|
||||
case UnresolvedKind.Unknown:
|
||||
assert(!isSuper);
|
||||
message = fasta.templateNameNotFound
|
||||
.withArguments(name)
|
||||
.withLocation(uri, charOffset, length);
|
||||
break;
|
||||
case UnresolvedKind.Member:
|
||||
message = warnUnresolvedMember(kernelName, charOffset,
|
||||
isSuper: isSuper, reportWarning: false, context: context)
|
||||
.withLocation(uri, charOffset, length);
|
||||
break;
|
||||
case UnresolvedKind.Getter:
|
||||
message = warnUnresolvedGet(kernelName, charOffset,
|
||||
isSuper: isSuper, reportWarning: false, context: context)
|
||||
.withLocation(uri, charOffset, length);
|
||||
break;
|
||||
case UnresolvedKind.Setter:
|
||||
message = warnUnresolvedSet(kernelName, charOffset,
|
||||
isSuper: isSuper, reportWarning: false, context: context)
|
||||
.withLocation(uri, charOffset, length);
|
||||
break;
|
||||
case UnresolvedKind.Method:
|
||||
message = warnUnresolvedMethod(kernelName, charOffset,
|
||||
isSuper: isSuper, reportWarning: false, context: context)
|
||||
.withLocation(uri, charOffset, length);
|
||||
break;
|
||||
case UnresolvedKind.Constructor:
|
||||
message = warnUnresolvedConstructor(kernelName, isSuper: isSuper)
|
||||
.withLocation(uri, charOffset, length);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return buildProblem(
|
||||
|
@ -1986,6 +2005,20 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
context: context);
|
||||
}
|
||||
|
||||
Message warnUnresolvedMember(Name name, int charOffset,
|
||||
{bool isSuper: false,
|
||||
bool reportWarning: true,
|
||||
List<LocatedMessage>? context}) {
|
||||
Message message = isSuper
|
||||
? fasta.templateSuperclassHasNoMember.withArguments(name.text)
|
||||
: fasta.templateMemberNotFound.withArguments(name.text);
|
||||
if (reportWarning) {
|
||||
addProblemErrorIfConst(message, charOffset, name.text.length,
|
||||
context: context);
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
||||
@override
|
||||
Message warnUnresolvedGet(Name name, int charOffset,
|
||||
{bool isSuper: false,
|
||||
|
@ -2022,6 +2055,7 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
bool reportWarning: true,
|
||||
List<LocatedMessage>? context}) {
|
||||
String plainName = name.text;
|
||||
|
||||
int dotIndex = plainName.lastIndexOf(".");
|
||||
if (dotIndex != -1) {
|
||||
plainName = plainName.substring(dotIndex + 1);
|
||||
|
@ -2041,6 +2075,13 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
return message;
|
||||
}
|
||||
|
||||
Message warnUnresolvedConstructor(Name name, {bool isSuper: false}) {
|
||||
Message message = isSuper
|
||||
? fasta.templateSuperclassHasNoConstructor.withArguments(name.text)
|
||||
: fasta.templateConstructorNotFound.withArguments(name.text);
|
||||
return message;
|
||||
}
|
||||
|
||||
@override
|
||||
void warnTypeArgumentsMismatch(String name, int expected, int charOffset) {
|
||||
addProblemErrorIfConst(
|
||||
|
@ -2170,7 +2211,8 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
assert(declaration == null);
|
||||
if (constantContext != ConstantContext.none ||
|
||||
(inFieldInitializer && !inLateFieldInitializer) && !inInitializer) {
|
||||
return new UnresolvedNameGenerator(this, token, n);
|
||||
return new UnresolvedNameGenerator(this, token, n,
|
||||
unresolvedReadKind: UnresolvedKind.Unknown);
|
||||
}
|
||||
if (extensionThis != null) {
|
||||
// If we are in an extension instance member we interpret this as an
|
||||
|
@ -2186,7 +2228,8 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
member.name == "_getMainClosure") {
|
||||
return forest.createNullLiteral(charOffset);
|
||||
} else {
|
||||
return new UnresolvedNameGenerator(this, token, n);
|
||||
return new UnresolvedNameGenerator(this, token, n,
|
||||
unresolvedReadKind: UnresolvedKind.Unknown);
|
||||
}
|
||||
} else if (declaration.isTypeDeclaration) {
|
||||
if (declaration is AccessErrorBuilder) {
|
||||
|
@ -2245,7 +2288,8 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
}
|
||||
if (declaration == null && setterBuilder == null) {
|
||||
return new UnresolvedNameGenerator(
|
||||
this, token, new Name(name, libraryBuilder.nameOrigin));
|
||||
this, token, new Name(name, libraryBuilder.nameOrigin),
|
||||
unresolvedReadKind: UnresolvedKind.Unknown);
|
||||
}
|
||||
MemberBuilder? getterBuilder =
|
||||
declaration is MemberBuilder ? declaration : null;
|
||||
|
@ -4172,9 +4216,9 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
LocatedMessage? argMessage = checkArgumentsForFunction(
|
||||
target.function!, arguments, charOffset, typeParameters);
|
||||
if (argMessage != null) {
|
||||
return throwNoSuchMethodError(forest.createNullLiteral(charOffset),
|
||||
return buildUnresolvedError(forest.createNullLiteral(charOffset),
|
||||
target.name.text, arguments, charOffset,
|
||||
candidate: target, message: argMessage);
|
||||
candidate: target, message: argMessage, kind: UnresolvedKind.Method);
|
||||
}
|
||||
|
||||
bool isConst = constness == Constness.explicitConst ||
|
||||
|
@ -4252,9 +4296,9 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
target.function, arguments, fileOffset, typeParameters,
|
||||
isExtensionMemberInvocation: true);
|
||||
if (argMessage != null) {
|
||||
return throwNoSuchMethodError(forest.createNullLiteral(fileOffset),
|
||||
return buildUnresolvedError(forest.createNullLiteral(fileOffset),
|
||||
target.name.text, arguments, fileOffset,
|
||||
candidate: target, message: argMessage);
|
||||
candidate: target, message: argMessage, kind: UnresolvedKind.Method);
|
||||
}
|
||||
|
||||
Expression node;
|
||||
|
@ -4495,8 +4539,9 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
if (type is ProblemBuilder) {
|
||||
typeName = type.fullNameForErrors;
|
||||
}
|
||||
push(throwNoSuchMethodError(forest.createNullLiteral(offset),
|
||||
debugName(typeName!, name), arguments, nameToken.charOffset));
|
||||
push(buildUnresolvedError(forest.createNullLiteral(offset),
|
||||
debugName(typeName!, name), arguments, nameToken.charOffset,
|
||||
kind: UnresolvedKind.Constructor));
|
||||
}
|
||||
constantContext = savedConstantContext;
|
||||
}
|
||||
|
@ -4520,7 +4565,8 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
int charOffset,
|
||||
Constness constness,
|
||||
{bool isTypeArgumentsInForest = false,
|
||||
TypeDeclarationBuilder? typeAliasBuilder}) {
|
||||
TypeDeclarationBuilder? typeAliasBuilder,
|
||||
required UnresolvedKind unresolvedKind}) {
|
||||
if (arguments == null) {
|
||||
return buildProblem(fasta.messageMissingArgumentList,
|
||||
nameToken.charOffset, nameToken.length);
|
||||
|
@ -4574,9 +4620,9 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
nameToken.lexeme.length));
|
||||
}
|
||||
|
||||
return throwNoSuchMethodError(forest.createNullLiteral(charOffset),
|
||||
return buildUnresolvedError(forest.createNullLiteral(charOffset),
|
||||
errorName, arguments, nameLastToken.charOffset,
|
||||
message: message);
|
||||
message: message, kind: UnresolvedKind.Constructor);
|
||||
}
|
||||
MemberBuilder? b = classBuilder.findConstructorOrFactory(
|
||||
name, charOffset, uri, libraryBuilder);
|
||||
|
@ -4606,9 +4652,9 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
charLength: nameToken.length);
|
||||
return invocation;
|
||||
} else {
|
||||
return throwNoSuchMethodError(forest.createNullLiteral(charOffset),
|
||||
return buildUnresolvedError(forest.createNullLiteral(charOffset),
|
||||
errorName, arguments, nameLastToken.charOffset,
|
||||
message: message);
|
||||
message: message, kind: UnresolvedKind.Constructor);
|
||||
}
|
||||
} else {
|
||||
// Empty `typeArguments` and `aliasBuilder``is non-generic, but it
|
||||
|
@ -4768,9 +4814,9 @@ class BodyBuilder extends ScopeListener<JumpTarget>
|
|||
errorName ??= debugName(type!.fullNameForErrors, name);
|
||||
}
|
||||
|
||||
return throwNoSuchMethodError(forest.createNullLiteral(charOffset),
|
||||
errorName, arguments, nameLastToken.charOffset,
|
||||
message: message);
|
||||
return buildUnresolvedError(forest.createNullLiteral(charOffset), errorName,
|
||||
arguments, nameLastToken.charOffset,
|
||||
message: message, kind: unresolvedKind);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
@ -63,8 +63,7 @@ import 'body_builder.dart' show noLocation;
|
|||
|
||||
import 'constness.dart' show Constness;
|
||||
|
||||
import 'expression_generator_helper.dart'
|
||||
show ExpressionGeneratorHelper, isProperRenameForClass;
|
||||
import 'expression_generator_helper.dart';
|
||||
|
||||
import 'forest.dart';
|
||||
|
||||
|
@ -171,10 +170,10 @@ abstract class Generator {
|
|||
/// Returns a [Expression] representing a compile-time error.
|
||||
///
|
||||
/// At runtime, an exception will be thrown.
|
||||
Expression _makeInvalidRead() {
|
||||
return _helper.throwNoSuchMethodError(_forest.createNullLiteral(fileOffset),
|
||||
Expression _makeInvalidRead(UnresolvedKind unresolvedKind) {
|
||||
return _helper.buildUnresolvedError(_forest.createNullLiteral(fileOffset),
|
||||
_plainNameForRead, _forest.createArgumentsEmpty(noLocation), fileOffset,
|
||||
isGetter: true);
|
||||
kind: unresolvedKind);
|
||||
}
|
||||
|
||||
/// Returns a [Expression] representing a compile-time error wrapping
|
||||
|
@ -182,12 +181,12 @@ abstract class Generator {
|
|||
///
|
||||
/// At runtime, [value] will be evaluated before throwing an exception.
|
||||
Expression _makeInvalidWrite(Expression value) {
|
||||
return _helper.throwNoSuchMethodError(
|
||||
return _helper.buildUnresolvedError(
|
||||
_forest.createNullLiteral(fileOffset),
|
||||
_plainNameForRead,
|
||||
_forest.createArguments(noLocation, <Expression>[value]),
|
||||
fileOffset,
|
||||
isSetter: true);
|
||||
kind: UnresolvedKind.Setter);
|
||||
}
|
||||
|
||||
Expression buildForEffect() => buildSimpleRead();
|
||||
|
@ -302,12 +301,13 @@ abstract class Generator {
|
|||
_forest.argumentsSetTypeArguments(
|
||||
arguments, _helper.buildDartTypeArguments(typeArguments));
|
||||
}
|
||||
return _helper.throwNoSuchMethodError(
|
||||
return _helper.buildUnresolvedError(
|
||||
_forest.createNullLiteral(fileOffset),
|
||||
_helper.constructorNameForDiagnostics(name,
|
||||
className: _plainNameForRead),
|
||||
arguments,
|
||||
nameToken.charOffset);
|
||||
nameToken.charOffset,
|
||||
kind: UnresolvedKind.Constructor);
|
||||
}
|
||||
|
||||
void printOn(StringSink sink);
|
||||
|
@ -1431,7 +1431,7 @@ class StaticAccessGenerator extends Generator {
|
|||
Expression _createRead() {
|
||||
Expression read;
|
||||
if (readTarget == null) {
|
||||
read = _makeInvalidRead();
|
||||
read = _makeInvalidRead(UnresolvedKind.Getter);
|
||||
} else {
|
||||
_reportNonNullableInNullAwareWarningIfNeeded();
|
||||
read = _helper.makeStaticGet(readTarget!, token);
|
||||
|
@ -1689,7 +1689,7 @@ class ExtensionInstanceAccessGenerator extends Generator {
|
|||
Expression _createRead() {
|
||||
Expression read;
|
||||
if (readTarget == null) {
|
||||
read = _makeInvalidRead();
|
||||
read = _makeInvalidRead(UnresolvedKind.Getter);
|
||||
} else {
|
||||
read = _helper.buildExtensionMethodInvocation(
|
||||
fileOffset,
|
||||
|
@ -2014,7 +2014,7 @@ class ExplicitExtensionInstanceAccessGenerator extends Generator {
|
|||
Expression _createRead(Expression receiver) {
|
||||
Expression read;
|
||||
if (readTarget == null) {
|
||||
read = _makeInvalidRead();
|
||||
read = _makeInvalidRead(UnresolvedKind.Getter);
|
||||
} else {
|
||||
read = _helper.buildExtensionMethodInvocation(
|
||||
fileOffset,
|
||||
|
@ -2345,7 +2345,7 @@ class ExplicitExtensionIndexedAccessGenerator extends Generator {
|
|||
@override
|
||||
Expression buildSimpleRead() {
|
||||
if (readTarget == null) {
|
||||
return _makeInvalidRead();
|
||||
return _makeInvalidRead(UnresolvedKind.Method);
|
||||
}
|
||||
VariableDeclarationImpl? variable;
|
||||
Expression receiverValue;
|
||||
|
@ -2599,7 +2599,8 @@ class ExplicitExtensionAccessGenerator extends Generator {
|
|||
setter = null;
|
||||
}
|
||||
if (getter == null && setter == null) {
|
||||
return new UnresolvedNameGenerator(_helper, token, name);
|
||||
return new UnresolvedNameGenerator(_helper, token, name,
|
||||
unresolvedReadKind: UnresolvedKind.Member);
|
||||
}
|
||||
return new ExplicitExtensionInstanceAccessGenerator.fromBuilder(
|
||||
_helper,
|
||||
|
@ -2661,7 +2662,7 @@ class ExplicitExtensionAccessGenerator extends Generator {
|
|||
}
|
||||
|
||||
@override
|
||||
Expression _makeInvalidRead() {
|
||||
Expression _makeInvalidRead([UnresolvedKind? unresolvedKind]) {
|
||||
return _helper.buildProblem(messageExplicitExtensionAsExpression,
|
||||
fileOffset, lengthForToken(token));
|
||||
}
|
||||
|
@ -2680,7 +2681,8 @@ class ExplicitExtensionAccessGenerator extends Generator {
|
|||
Builder? getter = extensionBuilder.lookupLocalMemberByName(indexGetName);
|
||||
Builder? setter = extensionBuilder.lookupLocalMemberByName(indexSetName);
|
||||
if (getter == null && setter == null) {
|
||||
return new UnresolvedNameGenerator(_helper, token, indexGetName);
|
||||
return new UnresolvedNameGenerator(_helper, token, indexGetName,
|
||||
unresolvedReadKind: UnresolvedKind.Method);
|
||||
}
|
||||
|
||||
return new ExplicitExtensionIndexedAccessGenerator.fromBuilder(
|
||||
|
@ -3057,7 +3059,8 @@ class TypeUseGenerator extends AbstractReadOnlyAccessGenerator {
|
|||
name,
|
||||
typeArguments,
|
||||
offsetForToken(nameToken),
|
||||
constness);
|
||||
constness,
|
||||
unresolvedKind: UnresolvedKind.Constructor);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -3255,7 +3258,8 @@ class TypeUseGenerator extends AbstractReadOnlyAccessGenerator {
|
|||
return tearOffExpression;
|
||||
}
|
||||
}
|
||||
generator = new UnresolvedNameGenerator(_helper, send.token, name);
|
||||
generator = new UnresolvedNameGenerator(_helper, send.token, name,
|
||||
unresolvedReadKind: UnresolvedKind.Member);
|
||||
} else {
|
||||
return _helper.buildConstructorInvocation(
|
||||
declaration,
|
||||
|
@ -3267,7 +3271,9 @@ class TypeUseGenerator extends AbstractReadOnlyAccessGenerator {
|
|||
token.charOffset,
|
||||
Constness.implicit,
|
||||
isTypeArgumentsInForest: send.isTypeArgumentsInForest,
|
||||
typeAliasBuilder: aliasBuilder);
|
||||
typeAliasBuilder: aliasBuilder,
|
||||
unresolvedKind:
|
||||
isNullAware ? UnresolvedKind.Method : UnresolvedKind.Member);
|
||||
}
|
||||
} else if (member is AmbiguousBuilder) {
|
||||
return _helper.buildProblem(
|
||||
|
@ -3350,7 +3356,8 @@ class TypeUseGenerator extends AbstractReadOnlyAccessGenerator {
|
|||
} else {
|
||||
return _helper.buildConstructorInvocation(declaration, token, token,
|
||||
arguments, "", typeArguments, token.charOffset, Constness.implicit,
|
||||
isTypeArgumentsInForest: isTypeArgumentsInForest);
|
||||
isTypeArgumentsInForest: isTypeArgumentsInForest,
|
||||
unresolvedKind: UnresolvedKind.Constructor);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3534,9 +3541,9 @@ abstract class ErroneousExpressionGenerator extends Generator {
|
|||
|
||||
/// Pass [arguments] that must be evaluated before throwing an error. At
|
||||
/// most one of [isGetter] and [isSetter] should be true and they're passed
|
||||
/// to [ExpressionGeneratorHelper.throwNoSuchMethodError] if it is used.
|
||||
/// to [ExpressionGeneratorHelper.buildUnresolvedError] if it is used.
|
||||
Expression buildError(Arguments arguments,
|
||||
{bool isGetter: false, bool isSetter: false, int offset});
|
||||
{required UnresolvedKind kind, int? charOffset});
|
||||
|
||||
Name get name => unsupported("name", fileOffset, _uri);
|
||||
|
||||
|
@ -3550,8 +3557,9 @@ abstract class ErroneousExpressionGenerator extends Generator {
|
|||
@override
|
||||
List<Initializer> buildFieldInitializer(Map<String, int>? initializedFields) {
|
||||
return <Initializer>[
|
||||
_helper.buildInvalidInitializer(
|
||||
buildError(_forest.createArgumentsEmpty(fileOffset), isSetter: true))
|
||||
_helper.buildInvalidInitializer(buildError(
|
||||
_forest.createArgumentsEmpty(fileOffset),
|
||||
kind: UnresolvedKind.Setter))
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -3559,7 +3567,8 @@ abstract class ErroneousExpressionGenerator extends Generator {
|
|||
doInvocation(
|
||||
int offset, List<UnresolvedType>? typeArguments, Arguments arguments,
|
||||
{bool isTypeArgumentsInForest = false}) {
|
||||
return buildError(arguments, offset: offset);
|
||||
return buildError(arguments,
|
||||
charOffset: offset, kind: UnresolvedKind.Method);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -3572,7 +3581,7 @@ abstract class ErroneousExpressionGenerator extends Generator {
|
|||
@override
|
||||
Expression buildAssignment(Expression value, {bool voidContext: false}) {
|
||||
return buildError(_forest.createArguments(fileOffset, <Expression>[value]),
|
||||
isSetter: true);
|
||||
kind: UnresolvedKind.Setter);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -3582,7 +3591,7 @@ abstract class ErroneousExpressionGenerator extends Generator {
|
|||
bool isPreIncDec: false,
|
||||
bool isPostIncDec: false}) {
|
||||
return buildError(_forest.createArguments(fileOffset, <Expression>[value]),
|
||||
isGetter: true);
|
||||
kind: UnresolvedKind.Getter);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -3591,7 +3600,7 @@ abstract class ErroneousExpressionGenerator extends Generator {
|
|||
return buildError(
|
||||
_forest.createArguments(
|
||||
fileOffset, <Expression>[_forest.createIntLiteral(offset, 1)]),
|
||||
isGetter: true)
|
||||
kind: UnresolvedKind.Getter)
|
||||
..fileOffset = offset;
|
||||
}
|
||||
|
||||
|
@ -3601,7 +3610,7 @@ abstract class ErroneousExpressionGenerator extends Generator {
|
|||
return buildError(
|
||||
_forest.createArguments(
|
||||
fileOffset, <Expression>[_forest.createIntLiteral(offset, 1)]),
|
||||
isGetter: true)
|
||||
kind: UnresolvedKind.Getter)
|
||||
..fileOffset = offset;
|
||||
}
|
||||
|
||||
|
@ -3609,23 +3618,25 @@ abstract class ErroneousExpressionGenerator extends Generator {
|
|||
Expression buildIfNullAssignment(Expression value, DartType type, int offset,
|
||||
{bool voidContext: false}) {
|
||||
return buildError(_forest.createArguments(fileOffset, <Expression>[value]),
|
||||
isSetter: true);
|
||||
kind: UnresolvedKind.Setter);
|
||||
}
|
||||
|
||||
@override
|
||||
Expression buildSimpleRead() {
|
||||
return buildError(_forest.createArgumentsEmpty(fileOffset), isGetter: true);
|
||||
return buildError(_forest.createArgumentsEmpty(fileOffset),
|
||||
kind: UnresolvedKind.Member);
|
||||
}
|
||||
|
||||
@override
|
||||
Expression _makeInvalidRead() {
|
||||
return buildError(_forest.createArgumentsEmpty(fileOffset), isGetter: true);
|
||||
Expression _makeInvalidRead(UnresolvedKind unresolvedKind) {
|
||||
return buildError(_forest.createArgumentsEmpty(fileOffset),
|
||||
kind: unresolvedKind);
|
||||
}
|
||||
|
||||
@override
|
||||
Expression _makeInvalidWrite(Expression value) {
|
||||
return buildError(_forest.createArguments(fileOffset, <Expression>[value]),
|
||||
isSetter: true);
|
||||
kind: UnresolvedKind.Setter);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -3641,7 +3652,7 @@ abstract class ErroneousExpressionGenerator extends Generator {
|
|||
_forest.argumentsSetTypeArguments(
|
||||
arguments, _helper.buildDartTypeArguments(typeArguments));
|
||||
}
|
||||
return buildError(arguments);
|
||||
return buildError(arguments, kind: UnresolvedKind.Constructor);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -3658,16 +3669,20 @@ class UnresolvedNameGenerator extends ErroneousExpressionGenerator {
|
|||
@override
|
||||
final Name name;
|
||||
|
||||
final UnresolvedKind unresolvedReadKind;
|
||||
|
||||
factory UnresolvedNameGenerator(
|
||||
ExpressionGeneratorHelper helper, Token token, Name name) {
|
||||
ExpressionGeneratorHelper helper, Token token, Name name,
|
||||
{required UnresolvedKind unresolvedReadKind}) {
|
||||
if (name.text.isEmpty) {
|
||||
unhandled("empty", "name", offsetForToken(token), helper.uri);
|
||||
}
|
||||
return new UnresolvedNameGenerator.internal(helper, token, name);
|
||||
return new UnresolvedNameGenerator.internal(
|
||||
helper, token, name, unresolvedReadKind);
|
||||
}
|
||||
|
||||
UnresolvedNameGenerator.internal(
|
||||
ExpressionGeneratorHelper helper, Token token, this.name)
|
||||
UnresolvedNameGenerator.internal(ExpressionGeneratorHelper helper,
|
||||
Token token, this.name, this.unresolvedReadKind)
|
||||
: super(helper, token);
|
||||
|
||||
@override
|
||||
|
@ -3677,16 +3692,17 @@ class UnresolvedNameGenerator extends ErroneousExpressionGenerator {
|
|||
Expression doInvocation(
|
||||
int charOffset, List<UnresolvedType>? typeArguments, Arguments arguments,
|
||||
{bool isTypeArgumentsInForest = false}) {
|
||||
return buildError(arguments, offset: charOffset);
|
||||
return buildError(arguments,
|
||||
charOffset: charOffset, kind: UnresolvedKind.Method);
|
||||
}
|
||||
|
||||
@override
|
||||
Expression buildError(Arguments arguments,
|
||||
{bool isGetter: false, bool isSetter: false, int? offset}) {
|
||||
offset ??= fileOffset;
|
||||
return _helper.throwNoSuchMethodError(
|
||||
_forest.createNullLiteral(offset), _plainNameForRead, arguments, offset,
|
||||
isGetter: isGetter, isSetter: isSetter);
|
||||
{required UnresolvedKind kind, int? charOffset}) {
|
||||
charOffset ??= fileOffset;
|
||||
return _helper.buildUnresolvedError(_forest.createNullLiteral(charOffset),
|
||||
_plainNameForRead, arguments, charOffset,
|
||||
kind: kind);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -3710,7 +3726,8 @@ class UnresolvedNameGenerator extends ErroneousExpressionGenerator {
|
|||
|
||||
@override
|
||||
Expression buildSimpleRead() {
|
||||
return buildError(_forest.createArgumentsEmpty(fileOffset), isGetter: true)
|
||||
return buildError(_forest.createArgumentsEmpty(fileOffset),
|
||||
kind: unresolvedReadKind)
|
||||
..fileOffset = fileOffset;
|
||||
}
|
||||
|
||||
|
@ -3723,7 +3740,7 @@ class UnresolvedNameGenerator extends ErroneousExpressionGenerator {
|
|||
Expression _buildUnresolvedVariableAssignment(
|
||||
bool isCompound, Expression value) {
|
||||
return buildError(_forest.createArguments(fileOffset, <Expression>[value]),
|
||||
isSetter: true);
|
||||
kind: UnresolvedKind.Setter);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -3788,7 +3805,7 @@ abstract class ContextAwareGenerator extends Generator {
|
|||
}
|
||||
|
||||
@override
|
||||
_makeInvalidRead() {
|
||||
_makeInvalidRead([UnresolvedKind? unresolvedKind]) {
|
||||
return unsupported("makeInvalidRead", token.charOffset, _helper.uri);
|
||||
}
|
||||
|
||||
|
@ -4030,7 +4047,7 @@ class PrefixUseGenerator extends Generator {
|
|||
}
|
||||
|
||||
@override
|
||||
Expression _makeInvalidRead() {
|
||||
Expression _makeInvalidRead([UnresolvedKind? unresolvedKind]) {
|
||||
return _helper.buildProblem(
|
||||
messageCantUsePrefixAsExpression, fileOffset, lengthForToken(token));
|
||||
}
|
||||
|
@ -4073,7 +4090,7 @@ class UnexpectedQualifiedUseGenerator extends Generator {
|
|||
String get _debugName => "UnexpectedQualifiedUseGenerator";
|
||||
|
||||
@override
|
||||
Expression buildSimpleRead() => _makeInvalidRead();
|
||||
Expression buildSimpleRead() => _makeInvalidRead(UnresolvedKind.Member);
|
||||
|
||||
@override
|
||||
Expression buildAssignment(Expression value, {bool voidContext: false}) {
|
||||
|
@ -4083,7 +4100,7 @@ class UnexpectedQualifiedUseGenerator extends Generator {
|
|||
@override
|
||||
Expression buildIfNullAssignment(Expression value, DartType type, int offset,
|
||||
{bool voidContext: false}) {
|
||||
return _makeInvalidRead();
|
||||
return _makeInvalidRead(UnresolvedKind.Member);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -4092,21 +4109,22 @@ class UnexpectedQualifiedUseGenerator extends Generator {
|
|||
bool voidContext: false,
|
||||
bool isPreIncDec: false,
|
||||
bool isPostIncDec: false}) {
|
||||
return _makeInvalidRead();
|
||||
return _makeInvalidRead(UnresolvedKind.Member);
|
||||
}
|
||||
|
||||
@override
|
||||
Expression buildPostfixIncrement(Name binaryOperator,
|
||||
{int offset = TreeNode.noOffset, bool voidContext = false}) {
|
||||
return _makeInvalidRead();
|
||||
return _makeInvalidRead(UnresolvedKind.Member);
|
||||
}
|
||||
|
||||
@override
|
||||
Expression doInvocation(
|
||||
int offset, List<UnresolvedType>? typeArguments, Arguments arguments,
|
||||
{bool isTypeArgumentsInForest = false}) {
|
||||
return _helper.throwNoSuchMethodError(_forest.createNullLiteral(offset),
|
||||
_plainNameForRead, arguments, fileOffset);
|
||||
return _helper.buildUnresolvedError(_forest.createNullLiteral(offset),
|
||||
_plainNameForRead, arguments, fileOffset,
|
||||
kind: UnresolvedKind.Method);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -4202,7 +4220,8 @@ class ParserErrorGenerator extends Generator {
|
|||
return buildProblem();
|
||||
}
|
||||
|
||||
Expression _makeInvalidRead() => buildProblem();
|
||||
Expression _makeInvalidRead([UnresolvedKind? unresolvedKind]) =>
|
||||
buildProblem();
|
||||
|
||||
Expression _makeInvalidWrite(Expression value) => buildProblem();
|
||||
|
||||
|
@ -4499,14 +4518,15 @@ class ThisAccessGenerator extends Generator {
|
|||
}
|
||||
if (message != null) {
|
||||
return _helper.buildInvalidInitializer(
|
||||
_helper.throwNoSuchMethodError(
|
||||
_helper.buildUnresolvedError(
|
||||
_forest.createNullLiteral(offset),
|
||||
_helper.constructorNameForDiagnostics(name.text,
|
||||
isSuper: isSuper),
|
||||
arguments,
|
||||
offset,
|
||||
isSuper: isSuper,
|
||||
message: message),
|
||||
message: message,
|
||||
kind: UnresolvedKind.Constructor),
|
||||
offset);
|
||||
} else if (isSuper) {
|
||||
return _helper.buildSuperInitializer(
|
||||
|
@ -4610,13 +4630,16 @@ class IncompleteErrorGenerator extends ErroneousExpressionGenerator
|
|||
|
||||
@override
|
||||
Expression buildError(Arguments arguments,
|
||||
{bool isGetter: false, bool isSetter: false, int? offset}) {
|
||||
int length = noLength;
|
||||
if (offset == null) {
|
||||
offset = fileOffset;
|
||||
length = lengthForToken(token);
|
||||
{required UnresolvedKind kind,
|
||||
String? name,
|
||||
int? charOffset,
|
||||
int? charLength}) {
|
||||
if (charOffset == null) {
|
||||
charOffset = fileOffset;
|
||||
charLength ??= lengthForToken(token);
|
||||
}
|
||||
return _helper.buildProblem(message, offset, length);
|
||||
charLength ??= noLength;
|
||||
return _helper.buildProblem(message, charOffset, charLength);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -4627,7 +4650,8 @@ class IncompleteErrorGenerator extends ErroneousExpressionGenerator
|
|||
|
||||
@override
|
||||
Expression buildSimpleRead() {
|
||||
return buildError(_forest.createArgumentsEmpty(fileOffset), isGetter: true)
|
||||
return buildError(_forest.createArgumentsEmpty(fileOffset),
|
||||
kind: UnresolvedKind.Member)
|
||||
..fileOffset = fileOffset;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,12 +97,12 @@ abstract class ExpressionGeneratorHelper implements InferenceHelper {
|
|||
int fileOffset, Procedure target, Arguments arguments,
|
||||
{required bool isTearOff});
|
||||
|
||||
Expression throwNoSuchMethodError(
|
||||
Expression receiver, String name, Arguments arguments, int offset,
|
||||
{Member candidate,
|
||||
Expression buildUnresolvedError(
|
||||
Expression receiver, String name, Arguments arguments, int charOffset,
|
||||
{
|
||||
Member candidate,
|
||||
bool isSuper,
|
||||
bool isGetter,
|
||||
bool isSetter,
|
||||
required UnresolvedKind kind,
|
||||
bool isStatic,
|
||||
LocatedMessage message});
|
||||
|
||||
|
@ -132,7 +132,8 @@ abstract class ExpressionGeneratorHelper implements InferenceHelper {
|
|||
int charOffset,
|
||||
Constness constness,
|
||||
{bool isTypeArgumentsInForest = false,
|
||||
TypeDeclarationBuilder? typeAliasBuilder});
|
||||
TypeDeclarationBuilder? typeAliasBuilder,
|
||||
required UnresolvedKind unresolvedKind});
|
||||
|
||||
UnresolvedType validateTypeUse(UnresolvedType unresolved,
|
||||
{required bool nonInstanceAccessIsError,
|
||||
|
@ -143,9 +144,11 @@ abstract class ExpressionGeneratorHelper implements InferenceHelper {
|
|||
Expression buildProblemErrorIfConst(
|
||||
Message message, int charOffset, int length);
|
||||
|
||||
Message warnUnresolvedGet(Name name, int charOffset, {bool isSuper: false});
|
||||
Message warnUnresolvedGet(Name name, int charOffset,
|
||||
{bool isSuper: false});
|
||||
|
||||
Message warnUnresolvedSet(Name name, int charOffset, {bool isSuper: false});
|
||||
Message warnUnresolvedSet(Name name, int charOffset,
|
||||
{bool isSuper: false});
|
||||
|
||||
Message warnUnresolvedMethod(Name name, int charOffset,
|
||||
{bool isSuper: false});
|
||||
|
@ -225,3 +228,12 @@ bool isProperRenameForClass(
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
enum UnresolvedKind {
|
||||
Unknown,
|
||||
Member,
|
||||
Method,
|
||||
Getter,
|
||||
Setter,
|
||||
Constructor,
|
||||
}
|
||||
|
|
|
@ -564,6 +564,7 @@ MainWrongParameterType/analyzerCode: Fail
|
|||
MainWrongParameterTypeExported/analyzerCode: Fail
|
||||
MainWrongParameterTypeExported/part_wrapped_script: Fail
|
||||
MapLiteralTypeArgumentMismatch/example: Fail
|
||||
MemberNotFound/example: Fail
|
||||
MetadataTypeArguments/example: Fail
|
||||
MethodNotFound/example: Fail
|
||||
MissingArgumentList/analyzerCode: Fail
|
||||
|
@ -592,6 +593,7 @@ MultipleOnClauses/script: Fail
|
|||
MultipleVarianceModifiers/example: Fail # All trigger multiple errors for variance experiment
|
||||
MultipleWith/part_wrapped_script: Fail
|
||||
MultipleWith/script: Fail
|
||||
NameNotFound/example: Fail
|
||||
NamedFunctionExpression/example: Fail
|
||||
NamedMixinOverride/analyzerCode: Fail
|
||||
NamedMixinOverride/example: Fail
|
||||
|
@ -769,6 +771,7 @@ SuperAsIdentifier/example: Fail
|
|||
SuperNullAware/example: Fail
|
||||
SuperclassHasNoDefaultConstructor/example: Fail
|
||||
SuperclassHasNoGetter/example: Fail
|
||||
SuperclassHasNoMember/example: Fail
|
||||
SuperclassHasNoMethod/example: Fail
|
||||
SuperclassHasNoSetter/example: Fail
|
||||
SuperclassMethodArgumentMismatch/analyzerCode: Fail
|
||||
|
|
|
@ -1688,6 +1688,14 @@ NonInstanceTypeVariableUse:
|
|||
template: "Can only use type variables in instance methods."
|
||||
analyzerCode: TYPE_PARAMETER_REFERENCED_BY_STATIC
|
||||
|
||||
NameNotFound:
|
||||
template: "Undefined name '#name'."
|
||||
analyzerCode: UNDEFINED_NAME
|
||||
|
||||
MemberNotFound:
|
||||
template: "Member not found: '#name'."
|
||||
analyzerCode: UNDEFINED_GETTER
|
||||
|
||||
GetterNotFound:
|
||||
template: "Getter not found: '#name'."
|
||||
analyzerCode: UNDEFINED_GETTER
|
||||
|
@ -3260,6 +3268,10 @@ TypeVariableInConstantContext:
|
|||
SuperclassMethodArgumentMismatch:
|
||||
template: "Superclass doesn't have a method named '#name' with matching arguments."
|
||||
|
||||
SuperclassHasNoMember:
|
||||
template: "Superclass has no member named '#name'."
|
||||
analyzerCode: UNDEFINED_SUPER_GETTER
|
||||
|
||||
SuperclassHasNoGetter:
|
||||
template: "Superclass has no getter named '#name'."
|
||||
analyzerCode: UNDEFINED_SUPER_GETTER
|
||||
|
|
|
@ -24,6 +24,7 @@ import 'package:front_end/src/fasta/dill/dill_target.dart';
|
|||
import 'package:front_end/src/fasta/fasta_codes.dart' as fasta;
|
||||
import 'package:front_end/src/fasta/kernel/body_builder.dart';
|
||||
import 'package:front_end/src/fasta/kernel/constness.dart';
|
||||
import 'package:front_end/src/fasta/kernel/expression_generator_helper.dart';
|
||||
import 'package:front_end/src/fasta/kernel/kernel_target.dart';
|
||||
import 'package:front_end/src/fasta/scope.dart';
|
||||
import 'package:front_end/src/fasta/source/diet_listener.dart';
|
||||
|
@ -237,7 +238,8 @@ class BodyBuilderTest extends BodyBuilder {
|
|||
int charOffset,
|
||||
Constness constness,
|
||||
{bool isTypeArgumentsInForest = false,
|
||||
TypeDeclarationBuilder typeAliasBuilder}) {
|
||||
TypeDeclarationBuilder typeAliasBuilder,
|
||||
UnresolvedKind unresolvedKind}) {
|
||||
Token maybeNewOrConst = nameToken.previous;
|
||||
bool doReport = true;
|
||||
if (maybeNewOrConst is KeywordToken) {
|
||||
|
@ -270,7 +272,8 @@ class BodyBuilderTest extends BodyBuilder {
|
|||
}
|
||||
return super.buildConstructorInvocation(type, nameToken, nameLastToken,
|
||||
arguments, name, typeArguments, charOffset, constness,
|
||||
isTypeArgumentsInForest: isTypeArgumentsInForest);
|
||||
isTypeArgumentsInForest: isTypeArgumentsInForest,
|
||||
unresolvedKind: unresolvedKind);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,10 +16,10 @@ import 'lib3.dart' as lib3;
|
|||
|
||||
main() {
|
||||
lib1.ShownExtension1.staticMethod();
|
||||
lib1. /*error: errors=[Getter not found: 'HiddenExtension1'.]*/
|
||||
lib1. /*error: errors=[Undefined name 'HiddenExtension1'.]*/
|
||||
HiddenExtension1.staticMethod();
|
||||
lib2.ShownExtension2.staticMethod();
|
||||
lib2. /*error: errors=[Getter not found: 'HiddenExtension2'.]*/
|
||||
lib2. /*error: errors=[Undefined name 'HiddenExtension2'.]*/
|
||||
HiddenExtension2.staticMethod();
|
||||
lib3.ShownExtension3.staticMethod();
|
||||
}
|
||||
|
|
|
@ -14,9 +14,9 @@ import 'lib2.dart' hide HiddenExtension2;
|
|||
|
||||
main() {
|
||||
ShownExtension1.staticMethod();
|
||||
/*error: errors=[Getter not found: 'HiddenExtension1'.]*/
|
||||
/*error: errors=[Undefined name 'HiddenExtension1'.]*/
|
||||
HiddenExtension1.staticMethod();
|
||||
ShownExtension2.staticMethod();
|
||||
/*error: errors=[Getter not found: 'HiddenExtension2'.]*/
|
||||
/*error: errors=[Undefined name 'HiddenExtension2'.]*/
|
||||
HiddenExtension2.staticMethod();
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@ import 'package:_fe_analyzer_shared/src/scanner/scanner.dart'
|
|||
show Token, scanString;
|
||||
|
||||
import 'package:expect/expect.dart' show Expect;
|
||||
import 'package:front_end/src/fasta/kernel/expression_generator_helper.dart';
|
||||
import 'package:front_end/src/fasta/scope.dart';
|
||||
import 'package:front_end/src/fasta/type_inference/type_inference_engine.dart';
|
||||
import 'package:front_end/src/fasta/uri_translator.dart';
|
||||
|
@ -222,8 +223,10 @@ main() async {
|
|||
new ParenthesizedExpressionGenerator(helper, token, expression));
|
||||
check("TypeUseGenerator(offset: 4, declaration: T, plainNameForRead: foo)",
|
||||
new TypeUseGenerator(helper, token, declaration, "foo"));
|
||||
check("UnresolvedNameGenerator(offset: 4, name: bar)",
|
||||
new UnresolvedNameGenerator.internal(helper, token, name));
|
||||
check(
|
||||
"UnresolvedNameGenerator(offset: 4, name: bar)",
|
||||
new UnresolvedNameGenerator.internal(
|
||||
helper, token, name, UnresolvedKind.Unknown));
|
||||
check("PrefixUseGenerator(offset: 4, prefix: myPrefix, deferred: false)",
|
||||
prefixUseGenerator);
|
||||
check(
|
||||
|
|
|
@ -38,6 +38,7 @@ annoying
|
|||
anon
|
||||
aoo
|
||||
aot
|
||||
applier
|
||||
approval
|
||||
approximation
|
||||
arbitrarily
|
||||
|
@ -455,6 +456,7 @@ fox
|
|||
frozen
|
||||
fulfill
|
||||
func
|
||||
futu
|
||||
futures
|
||||
fuzz
|
||||
fuzzing
|
||||
|
@ -713,6 +715,7 @@ outbound
|
|||
outlined
|
||||
overhead
|
||||
overlay
|
||||
overly
|
||||
ox
|
||||
pack
|
||||
paging
|
||||
|
|
|
@ -6,7 +6,7 @@ library /*isNonNullableByDefault*/;
|
|||
// AbstractClass.new; // error
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Member not found: 'new'.
|
||||
// Mixin.new; // error
|
||||
// ^^^
|
||||
//
|
||||
|
@ -14,7 +14,7 @@ library /*isNonNullableByDefault*/;
|
|||
// AbstractNamedMixinApplication.new; // error
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Member not found: 'new'.
|
||||
// Extension.new; // error
|
||||
// ^^^
|
||||
//
|
||||
|
@ -50,14 +50,14 @@ static method test() → dynamic {
|
|||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:14:17: Error: Constructors on abstract classes can't be torn off.
|
||||
AbstractClass.new; // error
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Getter not found: 'new'.
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Member not found: 'new'.
|
||||
Mixin.new; // error
|
||||
^^^";
|
||||
#C2;
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:17:33: Error: Constructors on abstract classes can't be torn off.
|
||||
AbstractNamedMixinApplication.new; // error
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Getter not found: 'new'.
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Member not found: 'new'.
|
||||
Extension.new; // error
|
||||
^^^";
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ library /*isNonNullableByDefault*/;
|
|||
// AbstractClass.new; // error
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Member not found: 'new'.
|
||||
// Mixin.new; // error
|
||||
// ^^^
|
||||
//
|
||||
|
@ -14,7 +14,7 @@ library /*isNonNullableByDefault*/;
|
|||
// AbstractNamedMixinApplication.new; // error
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Member not found: 'new'.
|
||||
// Extension.new; // error
|
||||
// ^^^
|
||||
//
|
||||
|
@ -50,14 +50,14 @@ static method test() → dynamic {
|
|||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:14:17: Error: Constructors on abstract classes can't be torn off.
|
||||
AbstractClass.new; // error
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Getter not found: 'new'.
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Member not found: 'new'.
|
||||
Mixin.new; // error
|
||||
^^^";
|
||||
#C2;
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:17:33: Error: Constructors on abstract classes can't be torn off.
|
||||
AbstractNamedMixinApplication.new; // error
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Getter not found: 'new'.
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Member not found: 'new'.
|
||||
Extension.new; // error
|
||||
^^^";
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ library /*isNonNullableByDefault*/;
|
|||
// AbstractClass.new; // error
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Member not found: 'new'.
|
||||
// Mixin.new; // error
|
||||
// ^^^
|
||||
//
|
||||
|
@ -14,7 +14,7 @@ library /*isNonNullableByDefault*/;
|
|||
// AbstractNamedMixinApplication.new; // error
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Member not found: 'new'.
|
||||
// Extension.new; // error
|
||||
// ^^^
|
||||
//
|
||||
|
@ -50,14 +50,14 @@ static method test() → dynamic {
|
|||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:14:17: Error: Constructors on abstract classes can't be torn off.
|
||||
AbstractClass.new; // error
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Getter not found: 'new'.
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Member not found: 'new'.
|
||||
Mixin.new; // error
|
||||
^^^";
|
||||
#C2;
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:17:33: Error: Constructors on abstract classes can't be torn off.
|
||||
AbstractNamedMixinApplication.new; // error
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Getter not found: 'new'.
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Member not found: 'new'.
|
||||
Extension.new; // error
|
||||
^^^";
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ library /*isNonNullableByDefault*/;
|
|||
// AbstractClass.new; // error
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Member not found: 'new'.
|
||||
// Mixin.new; // error
|
||||
// ^^^
|
||||
//
|
||||
|
@ -14,7 +14,7 @@ library /*isNonNullableByDefault*/;
|
|||
// AbstractNamedMixinApplication.new; // error
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Member not found: 'new'.
|
||||
// Extension.new; // error
|
||||
// ^^^
|
||||
//
|
||||
|
@ -50,14 +50,14 @@ static method test() → dynamic {
|
|||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:14:17: Error: Constructors on abstract classes can't be torn off.
|
||||
AbstractClass.new; // error
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Getter not found: 'new'.
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:15:9: Error: Member not found: 'new'.
|
||||
Mixin.new; // error
|
||||
^^^";
|
||||
#C2;
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:17:33: Error: Constructors on abstract classes can't be torn off.
|
||||
AbstractNamedMixinApplication.new; // error
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Getter not found: 'new'.
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/abstract_class_constructor_tear_off.dart:18:13: Error: Member not found: 'new'.
|
||||
Extension.new; // error
|
||||
^^^";
|
||||
}
|
||||
|
|
39
pkg/front_end/testcases/constructor_tearoffs/issue46719.dart
Normal file
39
pkg/front_end/testcases/constructor_tearoffs/issue46719.dart
Normal file
|
@ -0,0 +1,39 @@
|
|||
// Copyright (c) 2021, 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.
|
||||
|
||||
import 'issue46719.dart' as self;
|
||||
|
||||
class A<T> {
|
||||
A();
|
||||
A.named();
|
||||
|
||||
List<X> m<X>(X x) => [x];
|
||||
|
||||
static List<X> n<X>(X x) => [x];
|
||||
}
|
||||
|
||||
List<X> m<X>(X x) => [x];
|
||||
|
||||
extension FunctionApplier on Function {
|
||||
void applyAndPrint(List<Object?> positionalArguments) =>
|
||||
print(Function.apply(this, positionalArguments, const {}));
|
||||
}
|
||||
|
||||
test() {
|
||||
A.named<int>.toString();
|
||||
}
|
||||
|
||||
void main() {
|
||||
var a = A();
|
||||
a.m<int>.applyAndPrint([2]);
|
||||
a.m<String>.applyAndPrint(['three']);
|
||||
A.n<int>.applyAndPrint([2]);
|
||||
A.n<String>.applyAndPrint(['three']);
|
||||
self.m<int>.applyAndPrint([2]);
|
||||
self.m<String>.applyAndPrint(['three']);
|
||||
self.A.n<int>.applyAndPrint([2]);
|
||||
self.A.n<String>.applyAndPrint(['three']);
|
||||
A.named.toString();
|
||||
A<int>.named.toString();
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:29:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:30:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:33:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:34:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///issue46719.dart" as self;
|
||||
|
||||
class A<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor •() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
constructor named() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
method m<X extends core::Object? = dynamic>(self::A::m::X% x) → core::List<self::A::m::X%>
|
||||
return <self::A::m::X%>[x];
|
||||
static method n<X extends core::Object? = dynamic>(self::A::n::X% x) → core::List<self::A::n::X%>
|
||||
return <self::A::n::X%>[x];
|
||||
}
|
||||
extension FunctionApplier on core::Function {
|
||||
method applyAndPrint = self::FunctionApplier|applyAndPrint;
|
||||
tearoff applyAndPrint = self::FunctionApplier|get#applyAndPrint;
|
||||
}
|
||||
static method m<X extends core::Object? = dynamic>(self::m::X% x) → core::List<self::m::X%>
|
||||
return <self::m::X%>[x];
|
||||
static method FunctionApplier|applyAndPrint(lowered final core::Function #this, core::List<core::Object?> positionalArguments) → void
|
||||
return core::print(core::Function::apply(#this, positionalArguments, #C2));
|
||||
static method FunctionApplier|get#applyAndPrint(lowered final core::Function #this) → (core::List<core::Object?>) → void
|
||||
return (core::List<core::Object?> positionalArguments) → void => self::FunctionApplier|applyAndPrint(#this, positionalArguments);
|
||||
static method test() → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
A.named<int>.toString();
|
||||
^^^^^^^^";
|
||||
}
|
||||
static method main() → void {
|
||||
self::A<dynamic> a = new self::A::•<dynamic>();
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:29:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:30:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:33:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:34:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
self::FunctionApplier|applyAndPrint(#C4, <core::Object?>[2]);
|
||||
self::FunctionApplier|applyAndPrint(#C5, <core::Object?>["three"]);
|
||||
(#C6).{core::Object::toString}(){() → core::String};
|
||||
(#C7).{core::Object::toString}(){() → core::String};
|
||||
}
|
||||
|
||||
constants {
|
||||
#C1 = <dynamic>[]
|
||||
#C2 = core::_ImmutableMap<core::Symbol, dynamic> {_kvPairs:#C1}
|
||||
#C3 = static-tearoff self::A::n
|
||||
#C4 = instantiation self::A::n <core::int>
|
||||
#C5 = instantiation self::A::n <core::String>
|
||||
#C6 = constructor-tearoff self::A::named
|
||||
#C7 = instantiation self::A::named <core::int>
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:29:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:30:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:33:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:34:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///issue46719.dart" as self;
|
||||
|
||||
class A<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor •() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
constructor named() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
method m<X extends core::Object? = dynamic>(self::A::m::X% x) → core::List<self::A::m::X%>
|
||||
return core::_GrowableList::_literal1<self::A::m::X%>(x);
|
||||
static method n<X extends core::Object? = dynamic>(self::A::n::X% x) → core::List<self::A::n::X%>
|
||||
return core::_GrowableList::_literal1<self::A::n::X%>(x);
|
||||
}
|
||||
extension FunctionApplier on core::Function {
|
||||
method applyAndPrint = self::FunctionApplier|applyAndPrint;
|
||||
tearoff applyAndPrint = self::FunctionApplier|get#applyAndPrint;
|
||||
}
|
||||
static method m<X extends core::Object? = dynamic>(self::m::X% x) → core::List<self::m::X%>
|
||||
return core::_GrowableList::_literal1<self::m::X%>(x);
|
||||
static method FunctionApplier|applyAndPrint(lowered final core::Function #this, core::List<core::Object?> positionalArguments) → void
|
||||
return core::print(core::Function::apply(#this, positionalArguments, #C2));
|
||||
static method FunctionApplier|get#applyAndPrint(lowered final core::Function #this) → (core::List<core::Object?>) → void
|
||||
return (core::List<core::Object?> positionalArguments) → void => self::FunctionApplier|applyAndPrint(#this, positionalArguments);
|
||||
static method test() → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
A.named<int>.toString();
|
||||
^^^^^^^^";
|
||||
}
|
||||
static method main() → void {
|
||||
self::A<dynamic> a = new self::A::•<dynamic>();
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:29:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:30:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:33:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:34:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
self::FunctionApplier|applyAndPrint(#C4, core::_GrowableList::_literal1<core::Object?>(2));
|
||||
self::FunctionApplier|applyAndPrint(#C5, core::_GrowableList::_literal1<core::Object?>("three"));
|
||||
(#C6).{core::Object::toString}(){() → core::String};
|
||||
(#C7).{core::Object::toString}(){() → core::String};
|
||||
}
|
||||
|
||||
constants {
|
||||
#C1 = <dynamic>[]
|
||||
#C2 = core::_ImmutableMap<core::Symbol, dynamic> {_kvPairs:#C1}
|
||||
#C3 = static-tearoff self::A::n
|
||||
#C4 = instantiation self::A::n <core::int>
|
||||
#C5 = instantiation self::A::n <core::String>
|
||||
#C6 = constructor-tearoff self::A::named
|
||||
#C7 = instantiation self::A::named <core::int>
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
import 'issue46719.dart' as self;
|
||||
|
||||
class A<T> {
|
||||
A();
|
||||
A.named();
|
||||
List<X> m<X>(X x) => [x];
|
||||
static List<X> n<X>(X x) => [x];
|
||||
}
|
||||
|
||||
List<X> m<X>(X x) => [x];
|
||||
|
||||
extension FunctionApplier on Function {
|
||||
void applyAndPrint(List<Object?> positionalArguments) =>
|
||||
print(Function.apply(this, positionalArguments, const {}));
|
||||
}
|
||||
|
||||
test() {}
|
||||
void main() {}
|
|
@ -0,0 +1,18 @@
|
|||
import 'issue46719.dart' as self;
|
||||
|
||||
List<X> m<X>(X x) => [x];
|
||||
|
||||
class A<T> {
|
||||
A();
|
||||
A.named();
|
||||
List<X> m<X>(X x) => [x];
|
||||
static List<X> n<X>(X x) => [x];
|
||||
}
|
||||
|
||||
extension FunctionApplier on Function {
|
||||
void applyAndPrint(List<Object?> positionalArguments) =>
|
||||
print(Function.apply(this, positionalArguments, const {}));
|
||||
}
|
||||
|
||||
test() {}
|
||||
void main() {}
|
|
@ -0,0 +1,114 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:29:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:30:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:33:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:34:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///issue46719.dart" as self;
|
||||
|
||||
class A<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor •() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
constructor named() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
method m<X extends core::Object? = dynamic>(self::A::m::X% x) → core::List<self::A::m::X%>
|
||||
return <self::A::m::X%>[x];
|
||||
static method n<X extends core::Object? = dynamic>(self::A::n::X% x) → core::List<self::A::n::X%>
|
||||
return <self::A::n::X%>[x];
|
||||
}
|
||||
extension FunctionApplier on core::Function {
|
||||
method applyAndPrint = self::FunctionApplier|applyAndPrint;
|
||||
tearoff applyAndPrint = self::FunctionApplier|get#applyAndPrint;
|
||||
}
|
||||
static method m<X extends core::Object? = dynamic>(self::m::X% x) → core::List<self::m::X%>
|
||||
return <self::m::X%>[x];
|
||||
static method FunctionApplier|applyAndPrint(lowered final core::Function #this, core::List<core::Object?> positionalArguments) → void
|
||||
return core::print(core::Function::apply(#this, positionalArguments, #C2));
|
||||
static method FunctionApplier|get#applyAndPrint(lowered final core::Function #this) → (core::List<core::Object?>) → void
|
||||
return (core::List<core::Object?> positionalArguments) → void => self::FunctionApplier|applyAndPrint(#this, positionalArguments);
|
||||
static method test() → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
A.named<int>.toString();
|
||||
^^^^^^^^";
|
||||
}
|
||||
static method main() → void {
|
||||
self::A<dynamic> a = new self::A::•<dynamic>();
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:29:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:30:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:33:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:34:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
self::FunctionApplier|applyAndPrint(#C4, <core::Object?>[2]);
|
||||
self::FunctionApplier|applyAndPrint(#C5, <core::Object?>["three"]);
|
||||
(#C6).{core::Object::toString}(){() → core::String};
|
||||
(#C7).{core::Object::toString}(){() → core::String};
|
||||
}
|
||||
|
||||
constants {
|
||||
#C1 = <dynamic>[]
|
||||
#C2 = core::_ImmutableMap<core::Symbol*, dynamic> {_kvPairs:#C1}
|
||||
#C3 = static-tearoff self::A::n
|
||||
#C4 = instantiation self::A::n <core::int*>
|
||||
#C5 = instantiation self::A::n <core::String*>
|
||||
#C6 = constructor-tearoff self::A::named
|
||||
#C7 = instantiation self::A::named <core::int*>
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///issue46719.dart" as self;
|
||||
|
||||
class A<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor •() → self::A<self::A::T%>
|
||||
;
|
||||
constructor named() → self::A<self::A::T%>
|
||||
;
|
||||
method m<X extends core::Object? = dynamic>(self::A::m::X% x) → core::List<self::A::m::X%>
|
||||
;
|
||||
static method n<X extends core::Object? = dynamic>(self::A::n::X% x) → core::List<self::A::n::X%>
|
||||
;
|
||||
}
|
||||
extension FunctionApplier on core::Function {
|
||||
method applyAndPrint = self::FunctionApplier|applyAndPrint;
|
||||
tearoff applyAndPrint = self::FunctionApplier|get#applyAndPrint;
|
||||
}
|
||||
static method m<X extends core::Object? = dynamic>(self::m::X% x) → core::List<self::m::X%>
|
||||
;
|
||||
static method FunctionApplier|applyAndPrint(lowered final core::Function #this, core::List<core::Object?> positionalArguments) → void
|
||||
;
|
||||
static method FunctionApplier|get#applyAndPrint(lowered final core::Function #this) → (core::List<core::Object?>) → void
|
||||
return (core::List<core::Object?> positionalArguments) → void => self::FunctionApplier|applyAndPrint(#this, positionalArguments);
|
||||
static method test() → dynamic
|
||||
;
|
||||
static method main() → void
|
||||
;
|
|
@ -0,0 +1,114 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:29:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:30:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:33:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:34:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///issue46719.dart" as self;
|
||||
|
||||
class A<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor •() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
constructor named() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
method m<X extends core::Object? = dynamic>(self::A::m::X% x) → core::List<self::A::m::X%>
|
||||
return core::_GrowableList::_literal1<self::A::m::X%>(x);
|
||||
static method n<X extends core::Object? = dynamic>(self::A::n::X% x) → core::List<self::A::n::X%>
|
||||
return core::_GrowableList::_literal1<self::A::n::X%>(x);
|
||||
}
|
||||
extension FunctionApplier on core::Function {
|
||||
method applyAndPrint = self::FunctionApplier|applyAndPrint;
|
||||
tearoff applyAndPrint = self::FunctionApplier|get#applyAndPrint;
|
||||
}
|
||||
static method m<X extends core::Object? = dynamic>(self::m::X% x) → core::List<self::m::X%>
|
||||
return core::_GrowableList::_literal1<self::m::X%>(x);
|
||||
static method FunctionApplier|applyAndPrint(lowered final core::Function #this, core::List<core::Object?> positionalArguments) → void
|
||||
return core::print(core::Function::apply(#this, positionalArguments, #C2));
|
||||
static method FunctionApplier|get#applyAndPrint(lowered final core::Function #this) → (core::List<core::Object?>) → void
|
||||
return (core::List<core::Object?> positionalArguments) → void => self::FunctionApplier|applyAndPrint(#this, positionalArguments);
|
||||
static method test() → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:24:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
A.named<int>.toString();
|
||||
^^^^^^^^";
|
||||
}
|
||||
static method main() → void {
|
||||
self::A<dynamic> a = new self::A::•<dynamic>();
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:29:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:30:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:31:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:32:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:33:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46719.dart:34:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
self::FunctionApplier|applyAndPrint(#C4, core::_GrowableList::_literal1<core::Object?>(2));
|
||||
self::FunctionApplier|applyAndPrint(#C5, core::_GrowableList::_literal1<core::Object?>("three"));
|
||||
(#C6).{core::Object::toString}(){() → core::String};
|
||||
(#C7).{core::Object::toString}(){() → core::String};
|
||||
}
|
||||
|
||||
constants {
|
||||
#C1 = <dynamic>[]
|
||||
#C2 = core::_ImmutableMap<core::Symbol*, dynamic> {_kvPairs:#C1}
|
||||
#C3 = static-tearoff self::A::n
|
||||
#C4 = instantiation self::A::n <core::int*>
|
||||
#C5 = instantiation self::A::n <core::String*>
|
||||
#C6 = constructor-tearoff self::A::named
|
||||
#C7 = instantiation self::A::named <core::int*>
|
||||
}
|
20
pkg/front_end/testcases/constructor_tearoffs/issue46887.dart
Normal file
20
pkg/front_end/testcases/constructor_tearoffs/issue46887.dart
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright (c) 2021, 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.
|
||||
|
||||
String f(a, [b]) => "$a, $b";
|
||||
|
||||
String a<T1, T2>(int x) {
|
||||
return "a<$T1, $T2>($x)";
|
||||
}
|
||||
|
||||
typedef b = int;
|
||||
typedef c = String;
|
||||
|
||||
main() {
|
||||
expect("${a<b, c>}, null", f(a<b, c>.toString()));
|
||||
}
|
||||
|
||||
expect(expected, actual) {
|
||||
if (expected != actual) throw 'Expected $expected, actual $actual';
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46887.dart:15:32: Error: Couldn't find constructor 'a.toString'.
|
||||
// expect("${a<b, c>}, null", f(a<b, c>.toString()));
|
||||
// ^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
typedef b = core::int;
|
||||
typedef c = core::String;
|
||||
static method f(dynamic a, [dynamic b = #C1]) → core::String
|
||||
return "${a}, ${b}";
|
||||
static method a<T1 extends core::Object? = dynamic, T2 extends core::Object? = dynamic>(core::int x) → core::String {
|
||||
return "a<${self::a::T1%}, ${self::a::T2%}>(${x})";
|
||||
}
|
||||
static method main() → dynamic {
|
||||
self::expect("${#C3}, null", self::f(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46887.dart:15:32: Error: Couldn't find constructor 'a.toString'.
|
||||
expect(\"\${a<b, c>}, null\", f(a<b, c>.toString()));
|
||||
^^^^^^^^"));
|
||||
}
|
||||
static method expect(dynamic expected, dynamic actual) → dynamic {
|
||||
if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual))
|
||||
throw "Expected ${expected}, actual ${actual}";
|
||||
}
|
||||
|
||||
constants {
|
||||
#C1 = null
|
||||
#C2 = static-tearoff self::a
|
||||
#C3 = instantiation self::a <core::int, core::String>
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46887.dart:15:32: Error: Couldn't find constructor 'a.toString'.
|
||||
// expect("${a<b, c>}, null", f(a<b, c>.toString()));
|
||||
// ^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
typedef b = core::int;
|
||||
typedef c = core::String;
|
||||
static method f(dynamic a, [dynamic b = #C1]) → core::String
|
||||
return "${a}, ${b}";
|
||||
static method a<T1 extends core::Object? = dynamic, T2 extends core::Object? = dynamic>(core::int x) → core::String {
|
||||
return "a<${self::a::T1%}, ${self::a::T2%}>(${x})";
|
||||
}
|
||||
static method main() → dynamic {
|
||||
self::expect("${#C3}, null", self::f(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46887.dart:15:32: Error: Couldn't find constructor 'a.toString'.
|
||||
expect(\"\${a<b, c>}, null\", f(a<b, c>.toString()));
|
||||
^^^^^^^^"));
|
||||
}
|
||||
static method expect(dynamic expected, dynamic actual) → dynamic {
|
||||
if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual))
|
||||
throw "Expected ${expected}, actual ${actual}";
|
||||
}
|
||||
|
||||
constants {
|
||||
#C1 = null
|
||||
#C2 = static-tearoff self::a
|
||||
#C3 = instantiation self::a <core::int, core::String>
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
String f(a, [b]) => "$a, $b";
|
||||
String a<T1, T2>(int x) {}
|
||||
typedef b = int;
|
||||
typedef c = String;
|
||||
main() {}
|
||||
expect(expected, actual) {}
|
|
@ -0,0 +1,6 @@
|
|||
String a<T1, T2>(int x) {}
|
||||
String f(a, [b]) => "$a, $b";
|
||||
expect(expected, actual) {}
|
||||
main() {}
|
||||
typedef b = int;
|
||||
typedef c = String;
|
|
@ -0,0 +1,33 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46887.dart:15:32: Error: Couldn't find constructor 'a.toString'.
|
||||
// expect("${a<b, c>}, null", f(a<b, c>.toString()));
|
||||
// ^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
typedef b = core::int;
|
||||
typedef c = core::String;
|
||||
static method f(dynamic a, [dynamic b = #C1]) → core::String
|
||||
return "${a}, ${b}";
|
||||
static method a<T1 extends core::Object? = dynamic, T2 extends core::Object? = dynamic>(core::int x) → core::String {
|
||||
return "a<${self::a::T1%}, ${self::a::T2%}>(${x})";
|
||||
}
|
||||
static method main() → dynamic {
|
||||
self::expect("${#C3}, null", self::f(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46887.dart:15:32: Error: Couldn't find constructor 'a.toString'.
|
||||
expect(\"\${a<b, c>}, null\", f(a<b, c>.toString()));
|
||||
^^^^^^^^"));
|
||||
}
|
||||
static method expect(dynamic expected, dynamic actual) → dynamic {
|
||||
if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual))
|
||||
throw "Expected ${expected}, actual ${actual}";
|
||||
}
|
||||
|
||||
constants {
|
||||
#C1 = null
|
||||
#C2 = static-tearoff self::a
|
||||
#C3 = instantiation self::a <core::int*, core::String*>
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
typedef b = core::int;
|
||||
typedef c = core::String;
|
||||
static method f(dynamic a, [dynamic b]) → core::String
|
||||
;
|
||||
static method a<T1 extends core::Object? = dynamic, T2 extends core::Object? = dynamic>(core::int x) → core::String
|
||||
;
|
||||
static method main() → dynamic
|
||||
;
|
||||
static method expect(dynamic expected, dynamic actual) → dynamic
|
||||
;
|
|
@ -0,0 +1,33 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/constructor_tearoffs/issue46887.dart:15:32: Error: Couldn't find constructor 'a.toString'.
|
||||
// expect("${a<b, c>}, null", f(a<b, c>.toString()));
|
||||
// ^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
typedef b = core::int;
|
||||
typedef c = core::String;
|
||||
static method f(dynamic a, [dynamic b = #C1]) → core::String
|
||||
return "${a}, ${b}";
|
||||
static method a<T1 extends core::Object? = dynamic, T2 extends core::Object? = dynamic>(core::int x) → core::String {
|
||||
return "a<${self::a::T1%}, ${self::a::T2%}>(${x})";
|
||||
}
|
||||
static method main() → dynamic {
|
||||
self::expect("${#C3}, null", self::f(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/issue46887.dart:15:32: Error: Couldn't find constructor 'a.toString'.
|
||||
expect(\"\${a<b, c>}, null\", f(a<b, c>.toString()));
|
||||
^^^^^^^^"));
|
||||
}
|
||||
static method expect(dynamic expected, dynamic actual) → dynamic {
|
||||
if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual))
|
||||
throw "Expected ${expected}, actual ${actual}";
|
||||
}
|
||||
|
||||
constants {
|
||||
#C1 = null
|
||||
#C2 = static-tearoff self::a
|
||||
#C3 = instantiation self::a <core::int*, core::String*>
|
||||
}
|
|
@ -1,12 +1,12 @@
|
|||
Errors: {
|
||||
org-dartlang-debug:synthetic_debug_expression:1:17: Error: Getter not found: 'y'.
|
||||
org-dartlang-debug:synthetic_debug_expression:1:17: Error: Undefined name 'y'.
|
||||
() { return x + y; }
|
||||
^
|
||||
org-dartlang-debug:synthetic_debug_expression:1:13: Error: Getter not found: 'x'.
|
||||
org-dartlang-debug:synthetic_debug_expression:1:13: Error: Undefined name 'x'.
|
||||
() { return x + y; }
|
||||
^
|
||||
}
|
||||
static method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
|
||||
return () → invalid-type {
|
||||
return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:13: Error: Getter not found: 'x'.\n() { return x + y; }\n ^"{<invalid>}.+(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:17: Error: Getter not found: 'y'.\n() { return x + y; }\n ^");
|
||||
return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:13: Error: Undefined name 'x'.\n() { return x + y; }\n ^"{<invalid>}.+(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:17: Error: Undefined name 'y'.\n() { return x + y; }\n ^");
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Errors: {
|
||||
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Getter not found: 'z'.
|
||||
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Undefined name 'z'.
|
||||
z
|
||||
^
|
||||
}
|
||||
static method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
|
||||
return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:1: Error: Getter not found: 'z'.\nz\n^";
|
||||
return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:1: Error: Undefined name 'z'.\nz\n^";
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
Errors: {
|
||||
org-dartlang-debug:synthetic_debug_expression:1:13: Error: Getter not found: 'staticVar'.
|
||||
org-dartlang-debug:synthetic_debug_expression:1:13: Error: Undefined name 'staticVar'.
|
||||
globalVar + staticVar + 5
|
||||
^^^^^^^^^
|
||||
}
|
||||
method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
|
||||
return #lib1::globalVar.{dart.core::num::+}(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:13: Error: Getter not found: 'staticVar'.\nglobalVar + staticVar + 5\n ^^^^^^^^^"){(dart.core::num*) →* dart.core::num*}.{dart.core::num::+}(5){(dart.core::num*) →* dart.core::num*};
|
||||
return #lib1::globalVar.{dart.core::num::+}(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:13: Error: Undefined name 'staticVar'.\nglobalVar + staticVar + 5\n ^^^^^^^^^"){(dart.core::num*) →* dart.core::num*}.{dart.core::num::+}(5){(dart.core::num*) →* dart.core::num*};
|
||||
Errors: {
|
||||
}
|
||||
static method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Errors: {
|
||||
org-dartlang-debug:synthetic_debug_expression:1:5: Error: Method not found: 'Random'.
|
||||
org-dartlang-debug:synthetic_debug_expression:1:5: Error: Couldn't find constructor 'Random'.
|
||||
new Random()
|
||||
^^^^^^
|
||||
}
|
||||
method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
|
||||
return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:5: Error: Method not found: 'Random'.\nnew Random()\n ^^^^^^";
|
||||
return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:5: Error: Couldn't find constructor 'Random'.\nnew Random()\n ^^^^^^";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Errors: {
|
||||
org-dartlang-debug:synthetic_debug_expression:1:5: Error: Method not found: 'Directory'.
|
||||
org-dartlang-debug:synthetic_debug_expression:1:5: Error: Couldn't find constructor 'Directory'.
|
||||
new Directory("test")
|
||||
^^^^^^^^^
|
||||
}
|
||||
method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
|
||||
return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:5: Error: Method not found: 'Directory'.\nnew Directory(\"test\")\n ^^^^^^^^^";
|
||||
return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:5: Error: Couldn't find constructor 'Directory'.\nnew Directory(\"test\")\n ^^^^^^^^^";
|
||||
|
|
|
@ -2,15 +2,15 @@ library /*isNonNullableByDefault*/;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:26:3: Error: Getter not found: 'et'.
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:26:3: Error: Undefined name 'et'.
|
||||
// et.foo = 42; // Error.
|
||||
// ^^
|
||||
//
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:27:3: Error: Getter not found: 'et'.
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:27:3: Error: Undefined name 'et'.
|
||||
// et.bar = 42; // Error.
|
||||
// ^^
|
||||
//
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:28:3: Error: Getter not found: 'et'.
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:28:3: Error: Undefined name 'et'.
|
||||
// et.baz = 42; // Ok.
|
||||
// ^^
|
||||
//
|
||||
|
@ -64,13 +64,13 @@ Try correcting the name to the name of an existing setter, or defining a setter
|
|||
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'.
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:26:3: Error: Undefined name 'et'.
|
||||
et.foo = 42; // Error.
|
||||
^^"{<invalid>}.foo = 42;
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:27:3: Error: Getter not found: 'et'.
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:27:3: Error: Undefined name 'et'.
|
||||
et.bar = 42; // Error.
|
||||
^^"{<invalid>}.bar = 42;
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:28:3: Error: Getter not found: 'et'.
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:28:3: Error: Undefined name 'et'.
|
||||
et.baz = 42; // Ok.
|
||||
^^"{<invalid>}.baz = 42;
|
||||
}
|
||||
|
|
|
@ -2,15 +2,15 @@ library /*isNonNullableByDefault*/;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:26:3: Error: Getter not found: 'et'.
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:26:3: Error: Undefined name 'et'.
|
||||
// et.foo = 42; // Error.
|
||||
// ^^
|
||||
//
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:27:3: Error: Getter not found: 'et'.
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:27:3: Error: Undefined name 'et'.
|
||||
// et.bar = 42; // Error.
|
||||
// ^^
|
||||
//
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:28:3: Error: Getter not found: 'et'.
|
||||
// pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:28:3: Error: Undefined name 'et'.
|
||||
// et.baz = 42; // Ok.
|
||||
// ^^
|
||||
//
|
||||
|
@ -64,13 +64,13 @@ Try correcting the name to the name of an existing setter, or defining a setter
|
|||
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'.
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:26:3: Error: Undefined name 'et'.
|
||||
et.foo = 42; // Error.
|
||||
^^"{<invalid>}.foo = 42;
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:27:3: Error: Getter not found: 'et'.
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:27:3: Error: Undefined name 'et'.
|
||||
et.bar = 42; // Error.
|
||||
^^"{<invalid>}.bar = 42;
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:28:3: Error: Getter not found: 'et'.
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:28:3: Error: Undefined name 'et'.
|
||||
et.baz = 42; // Ok.
|
||||
^^"{<invalid>}.baz = 42;
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ library /*isNonNullableByDefault*/;
|
|||
// extension type MyInt on int show num, isEven hide floor {
|
||||
// ^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extension_types/simple_show_hide.dart:9:3: Error: Getter not found: 'e2'.
|
||||
// pkg/front_end/testcases/extension_types/simple_show_hide.dart:9:3: Error: Undefined name 'e2'.
|
||||
// e2.floor(); // Ok.
|
||||
// ^^
|
||||
//
|
||||
|
@ -192,7 +192,7 @@ static method test1(self::E1 e1) → dynamic {
|
|||
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'.
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:9:3: Error: Undefined name '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'.
|
||||
|
|
|
@ -95,7 +95,7 @@ library /*isNonNullableByDefault*/;
|
|||
// extension type MyInt on int show num, isEven hide floor {
|
||||
// ^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extension_types/simple_show_hide.dart:9:3: Error: Getter not found: 'e2'.
|
||||
// pkg/front_end/testcases/extension_types/simple_show_hide.dart:9:3: Error: Undefined name 'e2'.
|
||||
// e2.floor(); // Ok.
|
||||
// ^^
|
||||
//
|
||||
|
@ -192,7 +192,7 @@ static method test1(self::E1 e1) → dynamic {
|
|||
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'.
|
||||
invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:9:3: Error: Undefined name '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'.
|
||||
|
|
|
@ -22,7 +22,7 @@ library;
|
|||
// Extension<int>(c1).method(null);
|
||||
// ^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_access.dart:29:17: Error: Getter not found: 'foo'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_access.dart:29:17: Error: Member not found: 'foo'.
|
||||
// Extension(c1).foo;
|
||||
// ^^^
|
||||
//
|
||||
|
@ -190,7 +190,7 @@ static method main() → dynamic {
|
|||
- 'Class' is from 'pkg/front_end/testcases/extensions/invalid_explicit_access.dart'.
|
||||
Extension(s).method(null);
|
||||
^" in s as{TypeError} self::Class*, null);
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:29:17: Error: Getter not found: 'foo'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:29:17: Error: Member not found: 'foo'.
|
||||
Extension(c1).foo;
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:30:17: Error: Setter not found: 'foo'.
|
||||
|
|
|
@ -22,7 +22,7 @@ library;
|
|||
// Extension<int>(c1).method(null);
|
||||
// ^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_access.dart:29:17: Error: Getter not found: 'foo'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_access.dart:29:17: Error: Member not found: 'foo'.
|
||||
// Extension(c1).foo;
|
||||
// ^^^
|
||||
//
|
||||
|
@ -190,7 +190,7 @@ static method main() → dynamic {
|
|||
- 'Class' is from 'pkg/front_end/testcases/extensions/invalid_explicit_access.dart'.
|
||||
Extension(s).method(null);
|
||||
^" in s as{TypeError} self::Class*, null);
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:29:17: Error: Getter not found: 'foo'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:29:17: Error: Member not found: 'foo'.
|
||||
Extension(c1).foo;
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:30:17: Error: Setter not found: 'foo'.
|
||||
|
|
|
@ -6,7 +6,7 @@ library;
|
|||
// Extension(s).method();
|
||||
// ^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:19:16: Error: Getter not found: 'method'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:19:16: Error: Member not found: 'method'.
|
||||
// Extension(s).method;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -14,7 +14,7 @@ library;
|
|||
// Extension(s).method = 42;
|
||||
// ^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:21:16: Error: Getter not found: 'getter'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:21:16: Error: Member not found: 'getter'.
|
||||
// Extension(s).getter;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -22,7 +22,7 @@ library;
|
|||
// Extension(s).getter = 42;
|
||||
// ^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:23:16: Error: Getter not found: 'setter'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:23:16: Error: Member not found: 'setter'.
|
||||
// Extension(s).setter;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -30,7 +30,7 @@ library;
|
|||
// Extension(s).setter = 42;
|
||||
// ^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:25:16: Error: Getter not found: 'property'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:25:16: Error: Member not found: 'property'.
|
||||
// Extension(s).property;
|
||||
// ^^^^^^^^
|
||||
//
|
||||
|
@ -38,7 +38,7 @@ library;
|
|||
// Extension(s).property = 42;
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:27:16: Error: Getter not found: 'field'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:27:16: Error: Member not found: 'field'.
|
||||
// Extension(s).field;
|
||||
// ^^^^^
|
||||
//
|
||||
|
@ -71,31 +71,31 @@ static method errors() → dynamic {
|
|||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:18:16: Error: Method not found: 'method'.
|
||||
Extension(s).method();
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:19:16: Error: Getter not found: 'method'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:19:16: Error: Member not found: 'method'.
|
||||
Extension(s).method;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:20:16: Error: Setter not found: 'method'.
|
||||
Extension(s).method = 42;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:21:16: Error: Getter not found: 'getter'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:21:16: Error: Member not found: 'getter'.
|
||||
Extension(s).getter;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:22:16: Error: Setter not found: 'getter'.
|
||||
Extension(s).getter = 42;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:23:16: Error: Getter not found: 'setter'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:23:16: Error: Member not found: 'setter'.
|
||||
Extension(s).setter;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:24:16: Error: Setter not found: 'setter'.
|
||||
Extension(s).setter = 42;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:25:16: Error: Getter not found: 'property'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:25:16: Error: Member not found: 'property'.
|
||||
Extension(s).property;
|
||||
^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:26:16: Error: Setter not found: 'property'.
|
||||
Extension(s).property = 42;
|
||||
^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:27:16: Error: Getter not found: 'field'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:27:16: Error: Member not found: 'field'.
|
||||
Extension(s).field;
|
||||
^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:28:16: Error: Setter not found: 'field'.
|
||||
|
|
|
@ -6,7 +6,7 @@ library;
|
|||
// Extension(s).method();
|
||||
// ^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:19:16: Error: Getter not found: 'method'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:19:16: Error: Member not found: 'method'.
|
||||
// Extension(s).method;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -14,7 +14,7 @@ library;
|
|||
// Extension(s).method = 42;
|
||||
// ^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:21:16: Error: Getter not found: 'getter'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:21:16: Error: Member not found: 'getter'.
|
||||
// Extension(s).getter;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -22,7 +22,7 @@ library;
|
|||
// Extension(s).getter = 42;
|
||||
// ^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:23:16: Error: Getter not found: 'setter'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:23:16: Error: Member not found: 'setter'.
|
||||
// Extension(s).setter;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -30,7 +30,7 @@ library;
|
|||
// Extension(s).setter = 42;
|
||||
// ^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:25:16: Error: Getter not found: 'property'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:25:16: Error: Member not found: 'property'.
|
||||
// Extension(s).property;
|
||||
// ^^^^^^^^
|
||||
//
|
||||
|
@ -38,7 +38,7 @@ library;
|
|||
// Extension(s).property = 42;
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:27:16: Error: Getter not found: 'field'.
|
||||
// pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:27:16: Error: Member not found: 'field'.
|
||||
// Extension(s).field;
|
||||
// ^^^^^
|
||||
//
|
||||
|
@ -71,31 +71,31 @@ static method errors() → dynamic {
|
|||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:18:16: Error: Method not found: 'method'.
|
||||
Extension(s).method();
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:19:16: Error: Getter not found: 'method'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:19:16: Error: Member not found: 'method'.
|
||||
Extension(s).method;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:20:16: Error: Setter not found: 'method'.
|
||||
Extension(s).method = 42;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:21:16: Error: Getter not found: 'getter'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:21:16: Error: Member not found: 'getter'.
|
||||
Extension(s).getter;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:22:16: Error: Setter not found: 'getter'.
|
||||
Extension(s).getter = 42;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:23:16: Error: Getter not found: 'setter'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:23:16: Error: Member not found: 'setter'.
|
||||
Extension(s).setter;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:24:16: Error: Setter not found: 'setter'.
|
||||
Extension(s).setter = 42;
|
||||
^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:25:16: Error: Getter not found: 'property'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:25:16: Error: Member not found: 'property'.
|
||||
Extension(s).property;
|
||||
^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:26:16: Error: Setter not found: 'property'.
|
||||
Extension(s).property = 42;
|
||||
^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:27:16: Error: Getter not found: 'field'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:27:16: Error: Member not found: 'field'.
|
||||
Extension(s).field;
|
||||
^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_static_access.dart:28:16: Error: Setter not found: 'field'.
|
||||
|
|
|
@ -25,7 +25,7 @@ library;
|
|||
// final int property2 = 42;
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:20:5: Error: Getter not found: 'field'.
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:20:5: Error: Undefined name 'field'.
|
||||
// field;
|
||||
// ^^^^^
|
||||
//
|
||||
|
@ -37,7 +37,7 @@ library;
|
|||
// property;
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:24:5: Error: Getter not found: 'property2'.
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:24:5: Error: Undefined name 'property2'.
|
||||
// property2;
|
||||
// ^^^^^^^^^
|
||||
//
|
||||
|
@ -45,7 +45,7 @@ library;
|
|||
// property2 = 23;
|
||||
// ^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:40:10: Error: Getter not found: 'field'.
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:40:10: Error: Member not found: 'field'.
|
||||
// ext(c).field;
|
||||
// ^^^^^
|
||||
//
|
||||
|
@ -57,7 +57,7 @@ library;
|
|||
// ext(c).property;
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:44:10: Error: Getter not found: 'property2'.
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:44:10: Error: Member not found: 'property2'.
|
||||
// ext(c).property2;
|
||||
// ^^^^^^^^^
|
||||
//
|
||||
|
@ -128,7 +128,7 @@ static final field core::int* ext|property2 = 42;
|
|||
static method ext|set#property<T extends core::Object* = dynamic>(lowered final self::C<self::ext|set#property::T*>* #this, core::int* value) → void {}
|
||||
static set ext|property2(core::int* value) → void {}
|
||||
static method ext|method<T extends core::Object* = dynamic>(lowered final self::C<self::ext|method::T*>* #this) → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:20:5: Error: Getter not found: 'field'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:20:5: Error: Undefined name 'field'.
|
||||
field;
|
||||
^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:21:5: Error: Setter not found: 'field'.
|
||||
|
@ -138,7 +138,7 @@ static method ext|method<T extends core::Object* = dynamic>(lowered final self::
|
|||
property;
|
||||
^^^^^^^^";
|
||||
self::ext|set#property<self::ext|method::T*>(#this, 23);
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:24:5: Error: Getter not found: 'property2'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:24:5: Error: Undefined name 'property2'.
|
||||
property2;
|
||||
^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:25:5: Error: Setter not found: 'property2'.
|
||||
|
@ -176,7 +176,7 @@ Try correcting the name to the name of an existing getter, or defining a getter
|
|||
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'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:40:10: Error: Member not found: 'field'.
|
||||
ext(c).field;
|
||||
^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:41:10: Error: Setter not found: 'field'.
|
||||
|
@ -186,7 +186,7 @@ Try correcting the name to the name of an existing setter, or defining a setter
|
|||
ext(c).property;
|
||||
^^^^^^^^";
|
||||
self::ext|set#property<core::int*>(c, 23);
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:44:10: Error: Getter not found: 'property2'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:44:10: Error: Member not found: 'property2'.
|
||||
ext(c).property2;
|
||||
^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:45:10: Error: Setter not found: 'property2'.
|
||||
|
|
|
@ -25,7 +25,7 @@ library;
|
|||
// final int property2 = 42;
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:20:5: Error: Getter not found: 'field'.
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:20:5: Error: Undefined name 'field'.
|
||||
// field;
|
||||
// ^^^^^
|
||||
//
|
||||
|
@ -37,7 +37,7 @@ library;
|
|||
// property;
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:24:5: Error: Getter not found: 'property2'.
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:24:5: Error: Undefined name 'property2'.
|
||||
// property2;
|
||||
// ^^^^^^^^^
|
||||
//
|
||||
|
@ -45,7 +45,7 @@ library;
|
|||
// property2 = 23;
|
||||
// ^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:40:10: Error: Getter not found: 'field'.
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:40:10: Error: Member not found: 'field'.
|
||||
// ext(c).field;
|
||||
// ^^^^^
|
||||
//
|
||||
|
@ -57,7 +57,7 @@ library;
|
|||
// ext(c).property;
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:44:10: Error: Getter not found: 'property2'.
|
||||
// pkg/front_end/testcases/extensions/issue38745.dart:44:10: Error: Member not found: 'property2'.
|
||||
// ext(c).property2;
|
||||
// ^^^^^^^^^
|
||||
//
|
||||
|
@ -128,7 +128,7 @@ static final field core::int* ext|property2 = 42;
|
|||
static method ext|set#property<T extends core::Object* = dynamic>(lowered final self::C<self::ext|set#property::T*>* #this, core::int* value) → void {}
|
||||
static set ext|property2(core::int* value) → void {}
|
||||
static method ext|method<T extends core::Object* = dynamic>(lowered final self::C<self::ext|method::T*>* #this) → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:20:5: Error: Getter not found: 'field'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:20:5: Error: Undefined name 'field'.
|
||||
field;
|
||||
^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:21:5: Error: Setter not found: 'field'.
|
||||
|
@ -138,7 +138,7 @@ static method ext|method<T extends core::Object* = dynamic>(lowered final self::
|
|||
property;
|
||||
^^^^^^^^";
|
||||
self::ext|set#property<self::ext|method::T*>(#this, 23);
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:24:5: Error: Getter not found: 'property2'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:24:5: Error: Undefined name 'property2'.
|
||||
property2;
|
||||
^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:25:5: Error: Setter not found: 'property2'.
|
||||
|
@ -176,7 +176,7 @@ Try correcting the name to the name of an existing getter, or defining a getter
|
|||
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'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:40:10: Error: Member not found: 'field'.
|
||||
ext(c).field;
|
||||
^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:41:10: Error: Setter not found: 'field'.
|
||||
|
@ -186,7 +186,7 @@ Try correcting the name to the name of an existing setter, or defining a setter
|
|||
ext(c).property;
|
||||
^^^^^^^^";
|
||||
self::ext|set#property<core::int*>(c, 23);
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:44:10: Error: Getter not found: 'property2'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:44:10: Error: Member not found: 'property2'.
|
||||
ext(c).property2;
|
||||
^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38745.dart:45:10: Error: Setter not found: 'property2'.
|
||||
|
|
|
@ -2,7 +2,7 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/issue38750.dart:13:5: Error: Method not found: 'C._staticFoo'.
|
||||
// pkg/front_end/testcases/extensions/issue38750.dart:13:5: Error: Member not found: 'C._staticFoo'.
|
||||
// C._staticFoo();
|
||||
// ^^^^^^^^^^
|
||||
//
|
||||
|
@ -32,7 +32,7 @@ static method errors() → dynamic {
|
|||
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'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38750.dart:13:5: Error: Member not found: 'C._staticFoo'.
|
||||
C._staticFoo();
|
||||
^^^^^^^^^^";
|
||||
c.{iss::C::foo}(){() →* dynamic};
|
||||
|
|
|
@ -2,7 +2,7 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/issue38750.dart:13:5: Error: Method not found: 'C._staticFoo'.
|
||||
// pkg/front_end/testcases/extensions/issue38750.dart:13:5: Error: Member not found: 'C._staticFoo'.
|
||||
// C._staticFoo();
|
||||
// ^^^^^^^^^^
|
||||
//
|
||||
|
@ -32,7 +32,7 @@ static method errors() → dynamic {
|
|||
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'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/issue38750.dart:13:5: Error: Member not found: 'C._staticFoo'.
|
||||
C._staticFoo();
|
||||
^^^^^^^^^^";
|
||||
c.{iss::C::foo}(){() →* dynamic};
|
||||
|
|
|
@ -14,15 +14,15 @@ library;
|
|||
// expect(237, PublicExtension("")._privateMethod2());
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:27:14: Error: Getter not found: '_PrivateExtension'.
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:27:14: Error: Undefined name '_PrivateExtension'.
|
||||
// expect(24, _PrivateExtension.publicStaticMethod1());
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:28:14: Error: Getter not found: '_PrivateExtension'.
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:28:14: Error: Undefined name '_PrivateExtension'.
|
||||
// expect(78, _PrivateExtension._privateStaticMethod1());
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:29:31: Error: Method not found: 'PublicExtension._privateStaticMethod2'.
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:29:31: Error: Member not found: 'PublicExtension._privateStaticMethod2'.
|
||||
// expect(732, PublicExtension._privateStaticMethod2());
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
|
@ -92,13 +92,13 @@ Try correcting the name to the name of an existing method, or defining a method
|
|||
pri::expect(237, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:25:35: Error: Method not found: '_privateMethod2'.
|
||||
expect(237, PublicExtension(\"\")._privateMethod2());
|
||||
^^^^^^^^^^^^^^^");
|
||||
pri::expect(24, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:27:14: Error: Getter not found: '_PrivateExtension'.
|
||||
pri::expect(24, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:27:14: Error: Undefined name '_PrivateExtension'.
|
||||
expect(24, _PrivateExtension.publicStaticMethod1());
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}.publicStaticMethod1());
|
||||
pri::expect(78, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:28:14: Error: Getter not found: '_PrivateExtension'.
|
||||
pri::expect(78, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:28:14: Error: Undefined name '_PrivateExtension'.
|
||||
expect(78, _PrivateExtension._privateStaticMethod1());
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}._privateStaticMethod1());
|
||||
pri::expect(732, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:29:31: Error: Method not found: 'PublicExtension._privateStaticMethod2'.
|
||||
pri::expect(732, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:29:31: Error: Member not found: 'PublicExtension._privateStaticMethod2'.
|
||||
expect(732, PublicExtension._privateStaticMethod2());
|
||||
^^^^^^^^^^^^^^^^^^^^^");
|
||||
}
|
||||
|
|
|
@ -14,15 +14,15 @@ library;
|
|||
// expect(237, PublicExtension("")._privateMethod2());
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:27:14: Error: Getter not found: '_PrivateExtension'.
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:27:14: Error: Undefined name '_PrivateExtension'.
|
||||
// expect(24, _PrivateExtension.publicStaticMethod1());
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:28:14: Error: Getter not found: '_PrivateExtension'.
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:28:14: Error: Undefined name '_PrivateExtension'.
|
||||
// expect(78, _PrivateExtension._privateStaticMethod1());
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:29:31: Error: Method not found: 'PublicExtension._privateStaticMethod2'.
|
||||
// pkg/front_end/testcases/extensions/private_members.dart:29:31: Error: Member not found: 'PublicExtension._privateStaticMethod2'.
|
||||
// expect(732, PublicExtension._privateStaticMethod2());
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
|
@ -92,13 +92,13 @@ Try correcting the name to the name of an existing method, or defining a method
|
|||
pri::expect(237, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:25:35: Error: Method not found: '_privateMethod2'.
|
||||
expect(237, PublicExtension(\"\")._privateMethod2());
|
||||
^^^^^^^^^^^^^^^");
|
||||
pri::expect(24, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:27:14: Error: Getter not found: '_PrivateExtension'.
|
||||
pri::expect(24, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:27:14: Error: Undefined name '_PrivateExtension'.
|
||||
expect(24, _PrivateExtension.publicStaticMethod1());
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}.publicStaticMethod1());
|
||||
pri::expect(78, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:28:14: Error: Getter not found: '_PrivateExtension'.
|
||||
pri::expect(78, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:28:14: Error: Undefined name '_PrivateExtension'.
|
||||
expect(78, _PrivateExtension._privateStaticMethod1());
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}._privateStaticMethod1());
|
||||
pri::expect(732, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:29:31: Error: Method not found: 'PublicExtension._privateStaticMethod2'.
|
||||
pri::expect(732, invalid-expression "pkg/front_end/testcases/extensions/private_members.dart:29:31: Error: Member not found: 'PublicExtension._privateStaticMethod2'.
|
||||
expect(732, PublicExtension._privateStaticMethod2());
|
||||
^^^^^^^^^^^^^^^^^^^^^");
|
||||
}
|
||||
|
|
|
@ -2,15 +2,15 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:14:13: Error: Method not found: 'Extension.instanceMethod'.
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:14:13: Error: Member not found: 'Extension.instanceMethod'.
|
||||
// Extension.instanceMethod();
|
||||
// ^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:15:13: Error: Getter not found: 'instanceMethod'.
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:15:13: Error: Member not found: 'instanceMethod'.
|
||||
// Extension.instanceMethod;
|
||||
// ^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:16:13: Error: Getter not found: 'instanceProperty'.
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:16:13: Error: Member not found: 'instanceProperty'.
|
||||
// Extension.instanceProperty;
|
||||
// ^^^^^^^^^^^^^^^^
|
||||
//
|
||||
|
@ -49,13 +49,13 @@ static method Extension|get#instanceProperty(lowered final self::Class* #this)
|
|||
return 42;
|
||||
static method Extension|set#instanceProperty(lowered final self::Class* #this, dynamic value) → void {}
|
||||
static method main() → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:14:13: Error: Method not found: 'Extension.instanceMethod'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:14:13: Error: Member not found: 'Extension.instanceMethod'.
|
||||
Extension.instanceMethod();
|
||||
^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:15:13: Error: Getter not found: 'instanceMethod'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:15:13: Error: Member not found: 'instanceMethod'.
|
||||
Extension.instanceMethod;
|
||||
^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:16:13: Error: Getter not found: 'instanceProperty'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:16:13: Error: Member not found: 'instanceProperty'.
|
||||
Extension.instanceProperty;
|
||||
^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:17:13: Error: Setter not found: 'instanceProperty'.
|
||||
|
|
|
@ -2,15 +2,15 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:14:13: Error: Method not found: 'Extension.instanceMethod'.
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:14:13: Error: Member not found: 'Extension.instanceMethod'.
|
||||
// Extension.instanceMethod();
|
||||
// ^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:15:13: Error: Getter not found: 'instanceMethod'.
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:15:13: Error: Member not found: 'instanceMethod'.
|
||||
// Extension.instanceMethod;
|
||||
// ^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:16:13: Error: Getter not found: 'instanceProperty'.
|
||||
// pkg/front_end/testcases/extensions/static_access_of_instance.dart:16:13: Error: Member not found: 'instanceProperty'.
|
||||
// Extension.instanceProperty;
|
||||
// ^^^^^^^^^^^^^^^^
|
||||
//
|
||||
|
@ -49,13 +49,13 @@ static method Extension|get#instanceProperty(lowered final self::Class* #this)
|
|||
return 42;
|
||||
static method Extension|set#instanceProperty(lowered final self::Class* #this, dynamic value) → void {}
|
||||
static method main() → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:14:13: Error: Method not found: 'Extension.instanceMethod'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:14:13: Error: Member not found: 'Extension.instanceMethod'.
|
||||
Extension.instanceMethod();
|
||||
^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:15:13: Error: Getter not found: 'instanceMethod'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:15:13: Error: Member not found: 'instanceMethod'.
|
||||
Extension.instanceMethod;
|
||||
^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:16:13: Error: Getter not found: 'instanceProperty'.
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:16:13: Error: Member not found: 'instanceProperty'.
|
||||
Extension.instanceProperty;
|
||||
^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/extensions/static_access_of_instance.dart:17:13: Error: Setter not found: 'instanceProperty'.
|
||||
|
|
|
@ -12,7 +12,7 @@ library /*isNonNullableByDefault*/;
|
|||
// const v1 = MyClass<String>.new;
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Member not found: 'new'.
|
||||
// const v1 = MyClass<String>.new;
|
||||
// ^^^
|
||||
//
|
||||
|
@ -21,7 +21,7 @@ library /*isNonNullableByDefault*/;
|
|||
// const v2 = MyClass<int>.constr;
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Getter not found: 'constr'.
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Member not found: 'constr'.
|
||||
// const v2 = MyClass<int>.constr;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -35,7 +35,7 @@ library /*isNonNullableByDefault*/;
|
|||
// const v3 = MyClass<int>.new;
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Member not found: 'new'.
|
||||
// const v3 = MyClass<int>.new;
|
||||
// ^^^
|
||||
//
|
||||
|
@ -44,7 +44,7 @@ library /*isNonNullableByDefault*/;
|
|||
// const v4 = MyClass<String>.constr;
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Getter not found: 'constr'.
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Member not found: 'constr'.
|
||||
// const v4 = MyClass<String>.constr;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -61,34 +61,34 @@ class MyClass<T extends core::Object? = dynamic> extends core::Object /*hasConst
|
|||
;
|
||||
}
|
||||
static method test() → dynamic {
|
||||
const invalid-type v1 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Getter not found: 'new'.
|
||||
const invalid-type v1 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Member not found: 'new'.
|
||||
const v1 = MyClass<String>.new;
|
||||
^^^";
|
||||
const invalid-type v2 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Getter not found: 'constr'.
|
||||
const invalid-type v2 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Member not found: 'constr'.
|
||||
const v2 = MyClass<int>.constr;
|
||||
^^^^^^";
|
||||
const invalid-type v3 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Getter not found: 'new'.
|
||||
const invalid-type v3 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Member not found: 'new'.
|
||||
const v3 = MyClass<int>.new;
|
||||
^^^";
|
||||
const invalid-type v4 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Getter not found: 'constr'.
|
||||
const invalid-type v4 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Member not found: 'constr'.
|
||||
const v4 = MyClass<String>.constr;
|
||||
^^^^^^";
|
||||
const dynamic c1 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Getter not found: 'new'.
|
||||
const dynamic c1 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Member not found: 'new'.
|
||||
const v1 = MyClass<String>.new;
|
||||
^^^";
|
||||
const dynamic c2 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Getter not found: 'new'.
|
||||
const dynamic c2 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Member not found: 'new'.
|
||||
const v1 = MyClass<String>.new;
|
||||
^^^";
|
||||
const dynamic c3 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Getter not found: 'constr'.
|
||||
const dynamic c3 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Member not found: 'constr'.
|
||||
const v2 = MyClass<int>.constr;
|
||||
^^^^^^";
|
||||
const dynamic c4 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Getter not found: 'constr'.
|
||||
const dynamic c4 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Member not found: 'constr'.
|
||||
const v2 = MyClass<int>.constr;
|
||||
^^^^^^";
|
||||
const dynamic c5 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Getter not found: 'new'.
|
||||
const dynamic c5 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Member not found: 'new'.
|
||||
const v3 = MyClass<int>.new;
|
||||
^^^";
|
||||
const dynamic c6 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Getter not found: 'constr'.
|
||||
const dynamic c6 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Member not found: 'constr'.
|
||||
const v4 = MyClass<String>.constr;
|
||||
^^^^^^";
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ library /*isNonNullableByDefault*/;
|
|||
// const v1 = MyClass<String>.new;
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Member not found: 'new'.
|
||||
// const v1 = MyClass<String>.new;
|
||||
// ^^^
|
||||
//
|
||||
|
@ -21,7 +21,7 @@ library /*isNonNullableByDefault*/;
|
|||
// const v2 = MyClass<int>.constr;
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Getter not found: 'constr'.
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Member not found: 'constr'.
|
||||
// const v2 = MyClass<int>.constr;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -35,7 +35,7 @@ library /*isNonNullableByDefault*/;
|
|||
// const v3 = MyClass<int>.new;
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Getter not found: 'new'.
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Member not found: 'new'.
|
||||
// const v3 = MyClass<int>.new;
|
||||
// ^^^
|
||||
//
|
||||
|
@ -44,7 +44,7 @@ library /*isNonNullableByDefault*/;
|
|||
// const v4 = MyClass<String>.constr;
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Getter not found: 'constr'.
|
||||
// pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Member not found: 'constr'.
|
||||
// const v4 = MyClass<String>.constr;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -61,34 +61,34 @@ class MyClass<T extends core::Object? = dynamic> extends core::Object /*hasConst
|
|||
;
|
||||
}
|
||||
static method test() → dynamic {
|
||||
const invalid-type v1 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Getter not found: 'new'.
|
||||
const invalid-type v1 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Member not found: 'new'.
|
||||
const v1 = MyClass<String>.new;
|
||||
^^^";
|
||||
const invalid-type v2 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Getter not found: 'constr'.
|
||||
const invalid-type v2 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Member not found: 'constr'.
|
||||
const v2 = MyClass<int>.constr;
|
||||
^^^^^^";
|
||||
const invalid-type v3 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Getter not found: 'new'.
|
||||
const invalid-type v3 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Member not found: 'new'.
|
||||
const v3 = MyClass<int>.new;
|
||||
^^^";
|
||||
const invalid-type v4 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Getter not found: 'constr'.
|
||||
const invalid-type v4 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Member not found: 'constr'.
|
||||
const v4 = MyClass<String>.constr;
|
||||
^^^^^^";
|
||||
const dynamic c1 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Getter not found: 'new'.
|
||||
const dynamic c1 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Member not found: 'new'.
|
||||
const v1 = MyClass<String>.new;
|
||||
^^^";
|
||||
const dynamic c2 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Getter not found: 'new'.
|
||||
const dynamic c2 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:13:30: Error: Member not found: 'new'.
|
||||
const v1 = MyClass<String>.new;
|
||||
^^^";
|
||||
const dynamic c3 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Getter not found: 'constr'.
|
||||
const dynamic c3 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Member not found: 'constr'.
|
||||
const v2 = MyClass<int>.constr;
|
||||
^^^^^^";
|
||||
const dynamic c4 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Getter not found: 'constr'.
|
||||
const dynamic c4 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:14:27: Error: Member not found: 'constr'.
|
||||
const v2 = MyClass<int>.constr;
|
||||
^^^^^^";
|
||||
const dynamic c5 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Getter not found: 'new'.
|
||||
const dynamic c5 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:15:27: Error: Member not found: 'new'.
|
||||
const v3 = MyClass<int>.new;
|
||||
^^^";
|
||||
const dynamic c6 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Getter not found: 'constr'.
|
||||
const dynamic c6 = invalid-expression "pkg/front_end/testcases/general/constants/issue46925.dart:16:30: Error: Member not found: 'constr'.
|
||||
const v4 = MyClass<String>.constr;
|
||||
^^^^^^";
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ library /*isNonNullableByDefault*/;
|
|||
// f() { m(T<R(<Z
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/error_recovery/issue_38415.crash_dart:1:9: Error: Getter not found: 'T'.
|
||||
// pkg/front_end/testcases/general/error_recovery/issue_38415.crash_dart:1:9: Error: Undefined name 'T'.
|
||||
// f() { m(T<R(<Z
|
||||
// ^
|
||||
//
|
||||
|
|
|
@ -30,7 +30,7 @@ library /*isNonNullableByDefault*/;
|
|||
// f() { m(T<R(<Z
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/error_recovery/issue_38415.crash_dart:1:9: Error: Getter not found: 'T'.
|
||||
// pkg/front_end/testcases/general/error_recovery/issue_38415.crash_dart:1:9: Error: Undefined name 'T'.
|
||||
// f() { m(T<R(<Z
|
||||
// ^
|
||||
//
|
||||
|
|
|
@ -44,7 +44,7 @@ library /*isNonNullableByDefault*/;
|
|||
// () async => a b < c $? >
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/error_recovery/issue_39202.crash_dart:1:13: Error: Getter not found: 'a'.
|
||||
// pkg/front_end/testcases/general/error_recovery/issue_39202.crash_dart:1:13: Error: Undefined name 'a'.
|
||||
// () async => a b < c $? >
|
||||
// ^
|
||||
//
|
||||
|
@ -55,6 +55,6 @@ library /*isNonNullableByDefault*/;
|
|||
import self as self;
|
||||
|
||||
static method async() → dynamic
|
||||
return invalid-expression "pkg/front_end/testcases/general/error_recovery/issue_39202.crash_dart:1:13: Error: Getter not found: 'a'.
|
||||
return invalid-expression "pkg/front_end/testcases/general/error_recovery/issue_39202.crash_dart:1:13: Error: Undefined name 'a'.
|
||||
() async => a b < c \$? >
|
||||
^";
|
||||
|
|
|
@ -44,7 +44,7 @@ library /*isNonNullableByDefault*/;
|
|||
// () async => a b < c $? >
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/error_recovery/issue_39202.crash_dart:1:13: Error: Getter not found: 'a'.
|
||||
// pkg/front_end/testcases/general/error_recovery/issue_39202.crash_dart:1:13: Error: Undefined name 'a'.
|
||||
// () async => a b < c $? >
|
||||
// ^
|
||||
//
|
||||
|
@ -55,6 +55,6 @@ library /*isNonNullableByDefault*/;
|
|||
import self as self;
|
||||
|
||||
static method async() → dynamic
|
||||
return invalid-expression "pkg/front_end/testcases/general/error_recovery/issue_39202.crash_dart:1:13: Error: Getter not found: 'a'.
|
||||
return invalid-expression "pkg/front_end/testcases/general/error_recovery/issue_39202.crash_dart:1:13: Error: Undefined name 'a'.
|
||||
() async => a b < c \$? >
|
||||
^";
|
||||
|
|
|
@ -2,11 +2,11 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Method not found: 'Bar'.
|
||||
// pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Couldn't find constructor 'Bar'.
|
||||
// var y = prefix.Bar();
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/implicit_new.dart:19:10: Error: Method not found: 'Bar'.
|
||||
// pkg/front_end/testcases/general/implicit_new.dart:19:10: Error: Couldn't find constructor 'Bar'.
|
||||
// prefix.Bar();
|
||||
// ^^^
|
||||
//
|
||||
|
@ -68,10 +68,10 @@ class IndexTester extends core::Object {
|
|||
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
|
||||
}
|
||||
static method testNSM() → dynamic {
|
||||
invalid-type y = invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Method not found: 'Bar'.
|
||||
invalid-type y = invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Couldn't find constructor 'Bar'.
|
||||
var y = prefix.Bar();
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:19:10: Error: Method not found: 'Bar'.
|
||||
invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:19:10: Error: Couldn't find constructor 'Bar'.
|
||||
prefix.Bar();
|
||||
^^^";
|
||||
}
|
||||
|
|
|
@ -2,11 +2,11 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Method not found: 'Bar'.
|
||||
// pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Couldn't find constructor 'Bar'.
|
||||
// var y = prefix.Bar();
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/implicit_new.dart:19:10: Error: Method not found: 'Bar'.
|
||||
// pkg/front_end/testcases/general/implicit_new.dart:19:10: Error: Couldn't find constructor 'Bar'.
|
||||
// prefix.Bar();
|
||||
// ^^^
|
||||
//
|
||||
|
@ -68,10 +68,10 @@ class IndexTester extends core::Object {
|
|||
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
|
||||
}
|
||||
static method testNSM() → dynamic {
|
||||
invalid-type y = invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Method not found: 'Bar'.
|
||||
invalid-type y = invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Couldn't find constructor 'Bar'.
|
||||
var y = prefix.Bar();
|
||||
^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:19:10: Error: Method not found: 'Bar'.
|
||||
invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:19:10: Error: Couldn't find constructor 'Bar'.
|
||||
prefix.Bar();
|
||||
^^^";
|
||||
}
|
||||
|
|
51
pkg/front_end/testcases/general/implicit_new2.dart
Normal file
51
pkg/front_end/testcases/general/implicit_new2.dart
Normal file
|
@ -0,0 +1,51 @@
|
|||
// Copyright (c) 2021, 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.
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
void voidValue = null;
|
||||
|
||||
void main() {
|
||||
test1();
|
||||
test2();
|
||||
test3();
|
||||
test4();
|
||||
test5();
|
||||
test6();
|
||||
}
|
||||
|
||||
// Testing that a block bodied function may have no return
|
||||
FutureOr<FutureOr<void>> test1() {}
|
||||
|
||||
// Testing that a block bodied function may return Future<void>
|
||||
FutureOr<FutureOr<void>> test2() {
|
||||
return Future<void>.value(0);
|
||||
}
|
||||
|
||||
// Testing that a block bodied function may return FutureOr<void>
|
||||
FutureOr<FutureOr<void>> test3() {
|
||||
return null as FutureOr<void>;
|
||||
}
|
||||
|
||||
// Testing that a block bodied function may return Futu``re<void>
|
||||
FutureOr<FutureOr<void>> test4() {
|
||||
return Future<Future<void>>.value(Future<void>.value(null));
|
||||
}
|
||||
|
||||
// Testing that a block bodied function may return non-void values
|
||||
FutureOr<FutureOr<void>> test5() {
|
||||
return 42;
|
||||
}
|
||||
|
||||
// Testing that a block bodied function may return non-void Future values
|
||||
FutureOr<FutureOr<void>> test6() {
|
||||
return new Future.value(42);
|
||||
}
|
||||
|
||||
// Testing that a block bodied function may return overly nested Future
|
||||
// values, because `Future` is a subtype of `void`.
|
||||
FutureOr<FutureOr<void>> test() {
|
||||
return Future<Future<Future<void>>>.value(
|
||||
Future<Future<void>>.value(Future<void>.value(null)));
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
import 'dart:async';
|
||||
|
||||
void voidValue = null;
|
||||
void main() {}
|
||||
FutureOr<FutureOr<void>> test1() {}
|
||||
FutureOr<FutureOr<void>> test2() {}
|
||||
FutureOr<FutureOr<void>> test3() {}
|
||||
FutureOr<FutureOr<void>> test4() {}
|
||||
FutureOr<FutureOr<void>> test5() {}
|
||||
FutureOr<FutureOr<void>> test6() {}
|
||||
FutureOr<FutureOr<void>> test() {}
|
|
@ -0,0 +1,11 @@
|
|||
import 'dart:async';
|
||||
|
||||
FutureOr<FutureOr<void>> test() {}
|
||||
FutureOr<FutureOr<void>> test1() {}
|
||||
FutureOr<FutureOr<void>> test2() {}
|
||||
FutureOr<FutureOr<void>> test3() {}
|
||||
FutureOr<FutureOr<void>> test4() {}
|
||||
FutureOr<FutureOr<void>> test5() {}
|
||||
FutureOr<FutureOr<void>> test6() {}
|
||||
void main() {}
|
||||
void voidValue = null;
|
|
@ -0,0 +1,34 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
import "dart:async" as asy;
|
||||
|
||||
import "dart:async";
|
||||
|
||||
static field void voidValue = null;
|
||||
static method main() → void {
|
||||
self::test1();
|
||||
self::test2();
|
||||
self::test3();
|
||||
self::test4();
|
||||
self::test5();
|
||||
self::test6();
|
||||
}
|
||||
static method test1() → FutureOr<FutureOr<void>> {}
|
||||
static method test2() → FutureOr<FutureOr<void>> {
|
||||
return asy::Future::value<void>(0);
|
||||
}
|
||||
static method test3() → FutureOr<FutureOr<void>> {
|
||||
return null as{ForNonNullableByDefault} FutureOr<void>;
|
||||
}
|
||||
static method test4() → FutureOr<FutureOr<void>> {
|
||||
return asy::Future::value<asy::Future<void>>(asy::Future::value<void>(null));
|
||||
}
|
||||
static method test5() → FutureOr<FutureOr<void>> {
|
||||
return 42;
|
||||
}
|
||||
static method test6() → FutureOr<FutureOr<void>> {
|
||||
return asy::Future::value<FutureOr<void>>(42);
|
||||
}
|
||||
static method test() → FutureOr<FutureOr<void>> {
|
||||
return asy::Future::value<asy::Future<asy::Future<void>>>(asy::Future::value<asy::Future<void>>(asy::Future::value<void>(null)));
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "dart:async";
|
||||
|
||||
static field void voidValue;
|
||||
static method main() → void
|
||||
;
|
||||
static method test1() → FutureOr<FutureOr<void>>
|
||||
;
|
||||
static method test2() → FutureOr<FutureOr<void>>
|
||||
;
|
||||
static method test3() → FutureOr<FutureOr<void>>
|
||||
;
|
||||
static method test4() → FutureOr<FutureOr<void>>
|
||||
;
|
||||
static method test5() → FutureOr<FutureOr<void>>
|
||||
;
|
||||
static method test6() → FutureOr<FutureOr<void>>
|
||||
;
|
||||
static method test() → FutureOr<FutureOr<void>>
|
||||
;
|
|
@ -0,0 +1,34 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
import "dart:async" as asy;
|
||||
|
||||
import "dart:async";
|
||||
|
||||
static field void voidValue = null;
|
||||
static method main() → void {
|
||||
self::test1();
|
||||
self::test2();
|
||||
self::test3();
|
||||
self::test4();
|
||||
self::test5();
|
||||
self::test6();
|
||||
}
|
||||
static method test1() → FutureOr<FutureOr<void>> {}
|
||||
static method test2() → FutureOr<FutureOr<void>> {
|
||||
return asy::Future::value<void>(0);
|
||||
}
|
||||
static method test3() → FutureOr<FutureOr<void>> {
|
||||
return null;
|
||||
}
|
||||
static method test4() → FutureOr<FutureOr<void>> {
|
||||
return asy::Future::value<asy::Future<void>>(asy::Future::value<void>(null));
|
||||
}
|
||||
static method test5() → FutureOr<FutureOr<void>> {
|
||||
return 42;
|
||||
}
|
||||
static method test6() → FutureOr<FutureOr<void>> {
|
||||
return asy::Future::value<FutureOr<void>>(42);
|
||||
}
|
||||
static method test() → FutureOr<FutureOr<void>> {
|
||||
return asy::Future::value<asy::Future<asy::Future<void>>>(asy::Future::value<asy::Future<void>>(asy::Future::value<void>(null)));
|
||||
}
|
|
@ -6,15 +6,15 @@ library;
|
|||
// z("Hello, World!");
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:8:3: Error: Getter not found: 'z'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:8:3: Error: Undefined name 'z'.
|
||||
// z.print("Hello, World!");
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:9:3: Error: Getter not found: 'y'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:9:3: Error: Undefined name 'y'.
|
||||
// y.z.print("Hello, World!");
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:10:3: Error: Getter not found: 'x'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:10:3: Error: Undefined name 'x'.
|
||||
// x.y.z.print("Hello, World!");
|
||||
// ^
|
||||
//
|
||||
|
@ -22,15 +22,15 @@ library;
|
|||
// z("Hello, World!") +
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:15:7: Error: Getter not found: 'z'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:15:7: Error: Undefined name 'z'.
|
||||
// z.print("Hello, World!") +
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:16:7: Error: Getter not found: 'y'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:16:7: Error: Undefined name 'y'.
|
||||
// y.z.print("Hello, World!") +
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:17:7: Error: Getter not found: 'x'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:17:7: Error: Undefined name 'x'.
|
||||
// x.y.z.print("Hello, World!");
|
||||
// ^
|
||||
//
|
||||
|
@ -46,24 +46,24 @@ static method main() → dynamic {
|
|||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:7:3: Error: Method not found: 'z'.
|
||||
z(\"Hello, World!\");
|
||||
^";
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:8:3: Error: Getter not found: 'z'.
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:8:3: Error: Undefined name 'z'.
|
||||
z.print(\"Hello, World!\");
|
||||
^"{dynamic}.print("Hello, World!");
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:9:3: Error: Getter not found: 'y'.
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:9:3: Error: Undefined name 'y'.
|
||||
y.z.print(\"Hello, World!\");
|
||||
^"{<invalid>}.z{dynamic}.print("Hello, World!");
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:10:3: Error: Getter not found: 'x'.
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:10:3: Error: Undefined name 'x'.
|
||||
x.y.z.print(\"Hello, World!\");
|
||||
^"{<invalid>}.y{<invalid>}.z{dynamic}.print("Hello, World!");
|
||||
1.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:13:7: Error: This expression has type 'void' and can't be used.
|
||||
print(\"Hello, World!\") +
|
||||
^" in core::print("Hello, World!")){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:14:7: Error: Method not found: 'z'.
|
||||
z(\"Hello, World!\") +
|
||||
^"){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:15:7: Error: Getter not found: 'z'.
|
||||
^"){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:15:7: Error: Undefined name 'z'.
|
||||
z.print(\"Hello, World!\") +
|
||||
^"{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:16:7: Error: Getter not found: 'y'.
|
||||
^"{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:16:7: Error: Undefined name 'y'.
|
||||
y.z.print(\"Hello, World!\") +
|
||||
^"{<invalid>}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:17:7: Error: Getter not found: 'x'.
|
||||
^"{<invalid>}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:17:7: Error: Undefined name 'x'.
|
||||
x.y.z.print(\"Hello, World!\");
|
||||
^"{<invalid>}.y{<invalid>}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*};
|
||||
}
|
||||
|
|
|
@ -6,15 +6,15 @@ library;
|
|||
// z("Hello, World!");
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:8:3: Error: Getter not found: 'z'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:8:3: Error: Undefined name 'z'.
|
||||
// z.print("Hello, World!");
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:9:3: Error: Getter not found: 'y'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:9:3: Error: Undefined name 'y'.
|
||||
// y.z.print("Hello, World!");
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:10:3: Error: Getter not found: 'x'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:10:3: Error: Undefined name 'x'.
|
||||
// x.y.z.print("Hello, World!");
|
||||
// ^
|
||||
//
|
||||
|
@ -22,15 +22,15 @@ library;
|
|||
// z("Hello, World!") +
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:15:7: Error: Getter not found: 'z'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:15:7: Error: Undefined name 'z'.
|
||||
// z.print("Hello, World!") +
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:16:7: Error: Getter not found: 'y'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:16:7: Error: Undefined name 'y'.
|
||||
// y.z.print("Hello, World!") +
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/invocations.dart:17:7: Error: Getter not found: 'x'.
|
||||
// pkg/front_end/testcases/general/invocations.dart:17:7: Error: Undefined name 'x'.
|
||||
// x.y.z.print("Hello, World!");
|
||||
// ^
|
||||
//
|
||||
|
@ -46,24 +46,24 @@ static method main() → dynamic {
|
|||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:7:3: Error: Method not found: 'z'.
|
||||
z(\"Hello, World!\");
|
||||
^";
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:8:3: Error: Getter not found: 'z'.
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:8:3: Error: Undefined name 'z'.
|
||||
z.print(\"Hello, World!\");
|
||||
^"{dynamic}.print("Hello, World!");
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:9:3: Error: Getter not found: 'y'.
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:9:3: Error: Undefined name 'y'.
|
||||
y.z.print(\"Hello, World!\");
|
||||
^"{<invalid>}.z{dynamic}.print("Hello, World!");
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:10:3: Error: Getter not found: 'x'.
|
||||
invalid-expression "pkg/front_end/testcases/general/invocations.dart:10:3: Error: Undefined name 'x'.
|
||||
x.y.z.print(\"Hello, World!\");
|
||||
^"{<invalid>}.y{<invalid>}.z{dynamic}.print("Hello, World!");
|
||||
1.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:13:7: Error: This expression has type 'void' and can't be used.
|
||||
print(\"Hello, World!\") +
|
||||
^" in core::print("Hello, World!")){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:14:7: Error: Method not found: 'z'.
|
||||
z(\"Hello, World!\") +
|
||||
^"){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:15:7: Error: Getter not found: 'z'.
|
||||
^"){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:15:7: Error: Undefined name 'z'.
|
||||
z.print(\"Hello, World!\") +
|
||||
^"{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:16:7: Error: Getter not found: 'y'.
|
||||
^"{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:16:7: Error: Undefined name 'y'.
|
||||
y.z.print(\"Hello, World!\") +
|
||||
^"{<invalid>}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:17:7: Error: Getter not found: 'x'.
|
||||
^"{<invalid>}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:17:7: Error: Undefined name 'x'.
|
||||
x.y.z.print(\"Hello, World!\");
|
||||
^"{<invalid>}.y{<invalid>}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*};
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ library;
|
|||
// class X {
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue37776.dart:16:9: Error: Method not found: 'X.foo'.
|
||||
// pkg/front_end/testcases/general/issue37776.dart:16:9: Error: Couldn't find constructor 'X.foo'.
|
||||
// const X.foo();
|
||||
// ^^^
|
||||
//
|
||||
|
@ -47,7 +47,7 @@ class X extends core::Object /*hasConstConstructor*/ {
|
|||
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
|
||||
}
|
||||
static method main() → void {
|
||||
invalid-expression "pkg/front_end/testcases/general/issue37776.dart:16:9: Error: Method not found: 'X.foo'.
|
||||
invalid-expression "pkg/front_end/testcases/general/issue37776.dart:16:9: Error: Couldn't find constructor 'X.foo'.
|
||||
const X.foo();
|
||||
^^^";
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ library;
|
|||
// class X {
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue37776.dart:16:9: Error: Method not found: 'X.foo'.
|
||||
// pkg/front_end/testcases/general/issue37776.dart:16:9: Error: Couldn't find constructor 'X.foo'.
|
||||
// const X.foo();
|
||||
// ^^^
|
||||
//
|
||||
|
@ -47,7 +47,7 @@ class X extends core::Object /*hasConstConstructor*/ {
|
|||
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
|
||||
}
|
||||
static method main() → void {
|
||||
invalid-expression "pkg/front_end/testcases/general/issue37776.dart:16:9: Error: Method not found: 'X.foo'.
|
||||
invalid-expression "pkg/front_end/testcases/general/issue37776.dart:16:9: Error: Couldn't find constructor 'X.foo'.
|
||||
const X.foo();
|
||||
^^^";
|
||||
}
|
||||
|
|
38
pkg/front_end/testcases/general/issue46719.dart
Normal file
38
pkg/front_end/testcases/general/issue46719.dart
Normal file
|
@ -0,0 +1,38 @@
|
|||
// Copyright (c) 2021, 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.
|
||||
|
||||
import 'issue46719.dart' as self;
|
||||
|
||||
class A<T> {
|
||||
A();
|
||||
A.named();
|
||||
|
||||
List<X> m<X>(X x) => [x];
|
||||
|
||||
static List<X> n<X>(X x) => [x];
|
||||
}
|
||||
|
||||
List<X> m<X>(X x) => [x];
|
||||
|
||||
extension FunctionApplier on Function {
|
||||
void applyAndPrint(List<Object?> positionalArguments) =>
|
||||
print(Function.apply(this, positionalArguments, const {}));
|
||||
}
|
||||
|
||||
test() {
|
||||
var a = A();
|
||||
a.m<int>.applyAndPrint([2]);
|
||||
a.m<String>.applyAndPrint(['three']);
|
||||
A.n<int>.applyAndPrint([2]);
|
||||
A.n<String>.applyAndPrint(['three']);
|
||||
self.m<int>.applyAndPrint([2]);
|
||||
self.m<String>.applyAndPrint(['three']);
|
||||
self.A.n<int>.applyAndPrint([2]);
|
||||
self.A.n<String>.applyAndPrint(['three']);
|
||||
A.named.toString();
|
||||
A<int>.named.toString();
|
||||
A.named<int>.toString();
|
||||
}
|
||||
|
||||
void main() {}
|
|
@ -0,0 +1,18 @@
|
|||
import 'issue46719.dart' as self;
|
||||
|
||||
class A<T> {
|
||||
A();
|
||||
A.named();
|
||||
List<X> m<X>(X x) => [x];
|
||||
static List<X> n<X>(X x) => [x];
|
||||
}
|
||||
|
||||
List<X> m<X>(X x) => [x];
|
||||
|
||||
extension FunctionApplier on Function {
|
||||
void applyAndPrint(List<Object?> positionalArguments) =>
|
||||
print(Function.apply(this, positionalArguments, const {}));
|
||||
}
|
||||
|
||||
test() {}
|
||||
void main() {}
|
|
@ -0,0 +1,18 @@
|
|||
import 'issue46719.dart' as self;
|
||||
|
||||
List<X> m<X>(X x) => [x];
|
||||
|
||||
class A<T> {
|
||||
A();
|
||||
A.named();
|
||||
List<X> m<X>(X x) => [x];
|
||||
static List<X> n<X>(X x) => [x];
|
||||
}
|
||||
|
||||
extension FunctionApplier on Function {
|
||||
void applyAndPrint(List<Object?> positionalArguments) =>
|
||||
print(Function.apply(this, positionalArguments, const {}));
|
||||
}
|
||||
|
||||
test() {}
|
||||
void main() {}
|
136
pkg/front_end/testcases/general/issue46719.dart.weak.expect
Normal file
136
pkg/front_end/testcases/general/issue46719.dart.weak.expect
Normal file
|
@ -0,0 +1,136 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:25:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:26:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:27:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:27:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:28:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:28:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:29:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:30:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:31:11: Error: This requires the 'constructor-tearoffs' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.15 or higher, and running 'pub get'.
|
||||
// self.A.n<int>.applyAndPrint([2]);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:32:11: Error: This requires the 'constructor-tearoffs' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.15 or higher, and running 'pub get'.
|
||||
// self.A.n<String>.applyAndPrint(['three']);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:33:5: Error: Member not found: 'named'.
|
||||
// A.named.toString();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:34:4: Error: This requires the 'constructor-tearoffs' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.15 or higher, and running 'pub get'.
|
||||
// A<int>.named.toString();
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:34:10: Error: Member not found: 'named'.
|
||||
// A<int>.named.toString();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:35:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:35:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///issue46719.dart" as self;
|
||||
|
||||
class A<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor •() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
constructor named() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
method m<X extends core::Object? = dynamic>(self::A::m::X% x) → core::List<self::A::m::X%>
|
||||
return <self::A::m::X%>[x];
|
||||
static method n<X extends core::Object? = dynamic>(self::A::n::X% x) → core::List<self::A::n::X%>
|
||||
return <self::A::n::X%>[x];
|
||||
}
|
||||
extension FunctionApplier on core::Function {
|
||||
method applyAndPrint = self::FunctionApplier|applyAndPrint;
|
||||
tearoff applyAndPrint = self::FunctionApplier|get#applyAndPrint;
|
||||
}
|
||||
static method m<X extends core::Object? = dynamic>(self::m::X% x) → core::List<self::m::X%>
|
||||
return <self::m::X%>[x];
|
||||
static method FunctionApplier|applyAndPrint(lowered final core::Function #this, core::List<core::Object?> positionalArguments) → void
|
||||
return core::print(core::Function::apply(#this, positionalArguments, #C2));
|
||||
static method FunctionApplier|get#applyAndPrint(lowered final core::Function #this) → (core::List<core::Object?>) → void
|
||||
return (core::List<core::Object?> positionalArguments) → void => self::FunctionApplier|applyAndPrint(#this, positionalArguments);
|
||||
static method test() → dynamic {
|
||||
self::A<dynamic> a = new self::A::•<dynamic>();
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:25:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:26:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:27:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:28:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:29:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:30:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
self::FunctionApplier|applyAndPrint(#C3, <core::Object?>[2]);
|
||||
self::FunctionApplier|applyAndPrint(#C3, <core::Object?>["three"]);
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:33:5: Error: Member not found: 'named'.
|
||||
A.named.toString();
|
||||
^^^^^".{core::Object::toString}(){() → core::String};
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:34:10: Error: Member not found: 'named'.
|
||||
A<int>.named.toString();
|
||||
^^^^^".{core::Object::toString}(){() → core::String};
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:35:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
A.named<int>.toString();
|
||||
^^^^^^^^";
|
||||
}
|
||||
static method main() → void {}
|
||||
|
||||
constants {
|
||||
#C1 = <dynamic>[]
|
||||
#C2 = core::_ImmutableMap<core::Symbol*, dynamic> {_kvPairs:#C1}
|
||||
#C3 = static-tearoff self::A::n
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///issue46719.dart" as self;
|
||||
|
||||
class A<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor •() → self::A<self::A::T%>
|
||||
;
|
||||
constructor named() → self::A<self::A::T%>
|
||||
;
|
||||
method m<X extends core::Object? = dynamic>(self::A::m::X% x) → core::List<self::A::m::X%>
|
||||
;
|
||||
static method n<X extends core::Object? = dynamic>(self::A::n::X% x) → core::List<self::A::n::X%>
|
||||
;
|
||||
}
|
||||
extension FunctionApplier on core::Function {
|
||||
method applyAndPrint = self::FunctionApplier|applyAndPrint;
|
||||
tearoff applyAndPrint = self::FunctionApplier|get#applyAndPrint;
|
||||
}
|
||||
static method m<X extends core::Object? = dynamic>(self::m::X% x) → core::List<self::m::X%>
|
||||
;
|
||||
static method FunctionApplier|applyAndPrint(lowered final core::Function #this, core::List<core::Object?> positionalArguments) → void
|
||||
;
|
||||
static method FunctionApplier|get#applyAndPrint(lowered final core::Function #this) → (core::List<core::Object?>) → void
|
||||
return (core::List<core::Object?> positionalArguments) → void => self::FunctionApplier|applyAndPrint(#this, positionalArguments);
|
||||
static method test() → dynamic
|
||||
;
|
||||
static method main() → void
|
||||
;
|
|
@ -0,0 +1,136 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:25:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:26:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
// a.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:27:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:27:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:28:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:28:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
// A.n<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:29:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<int>.applyAndPrint([2]);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:30:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
// self.m<String>.applyAndPrint(['three']);
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:31:11: Error: This requires the 'constructor-tearoffs' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.15 or higher, and running 'pub get'.
|
||||
// self.A.n<int>.applyAndPrint([2]);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:32:11: Error: This requires the 'constructor-tearoffs' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.15 or higher, and running 'pub get'.
|
||||
// self.A.n<String>.applyAndPrint(['three']);
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:33:5: Error: Member not found: 'named'.
|
||||
// A.named.toString();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:34:4: Error: This requires the 'constructor-tearoffs' language feature to be enabled.
|
||||
// Try updating your pubspec.yaml to set the minimum SDK constraint to 2.15 or higher, and running 'pub get'.
|
||||
// A<int>.named.toString();
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:34:10: Error: Member not found: 'named'.
|
||||
// A<int>.named.toString();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:35:5: Error: A constructor invocation can't have type arguments after the constructor name.
|
||||
// Try removing the type arguments or placing them after the class name.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/issue46719.dart:35:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
// A.named<int>.toString();
|
||||
// ^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///issue46719.dart" as self;
|
||||
|
||||
class A<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor •() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
constructor named() → self::A<self::A::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
method m<X extends core::Object? = dynamic>(self::A::m::X% x) → core::List<self::A::m::X%>
|
||||
return core::_GrowableList::_literal1<self::A::m::X%>(x);
|
||||
static method n<X extends core::Object? = dynamic>(self::A::n::X% x) → core::List<self::A::n::X%>
|
||||
return core::_GrowableList::_literal1<self::A::n::X%>(x);
|
||||
}
|
||||
extension FunctionApplier on core::Function {
|
||||
method applyAndPrint = self::FunctionApplier|applyAndPrint;
|
||||
tearoff applyAndPrint = self::FunctionApplier|get#applyAndPrint;
|
||||
}
|
||||
static method m<X extends core::Object? = dynamic>(self::m::X% x) → core::List<self::m::X%>
|
||||
return core::_GrowableList::_literal1<self::m::X%>(x);
|
||||
static method FunctionApplier|applyAndPrint(lowered final core::Function #this, core::List<core::Object?> positionalArguments) → void
|
||||
return core::print(core::Function::apply(#this, positionalArguments, #C2));
|
||||
static method FunctionApplier|get#applyAndPrint(lowered final core::Function #this) → (core::List<core::Object?>) → void
|
||||
return (core::List<core::Object?> positionalArguments) → void => self::FunctionApplier|applyAndPrint(#this, positionalArguments);
|
||||
static method test() → dynamic {
|
||||
self::A<dynamic> a = new self::A::•<dynamic>();
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:25:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:26:3: Error: Couldn't find constructor 'a.m.applyAndPrint'.
|
||||
a.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:27:12: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:28:15: Error: Couldn't find constructor 'A.n.applyAndPrint'.
|
||||
A.n<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:29:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<int>.applyAndPrint([2]);
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:30:3: Error: Couldn't find constructor 'm.applyAndPrint'.
|
||||
self.m<String>.applyAndPrint(['three']);
|
||||
^^^^^^^^^^^^^";
|
||||
self::FunctionApplier|applyAndPrint(#C3, core::_GrowableList::_literal1<core::Object?>(2));
|
||||
self::FunctionApplier|applyAndPrint(#C3, core::_GrowableList::_literal1<core::Object?>("three"));
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:33:5: Error: Member not found: 'named'.
|
||||
A.named.toString();
|
||||
^^^^^".{core::Object::toString}(){() → core::String};
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:34:10: Error: Member not found: 'named'.
|
||||
A<int>.named.toString();
|
||||
^^^^^".{core::Object::toString}(){() → core::String};
|
||||
invalid-expression "pkg/front_end/testcases/general/issue46719.dart:35:16: Error: Couldn't find constructor 'A.named.toString'.
|
||||
A.named<int>.toString();
|
||||
^^^^^^^^";
|
||||
}
|
||||
static method main() → void {}
|
||||
|
||||
constants {
|
||||
#C1 = <dynamic>[]
|
||||
#C2 = core::_ImmutableMap<core::Symbol*, dynamic> {_kvPairs:#C1}
|
||||
#C3 = static-tearoff self::A::n
|
||||
}
|
|
@ -2,19 +2,19 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:15:16: Error: Getter not found: 'property'.
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:15:16: Error: Undefined name 'property'.
|
||||
// : assert(property),
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:16:22: Error: Getter not found: 'property'.
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:16:22: Error: Undefined name 'property'.
|
||||
// this.field = property,
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:17:15: Error: Getter not found: 'property'.
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:17:15: Error: Undefined name 'property'.
|
||||
// super(property);
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:19:27: Error: Getter not found: 'property'.
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:19:27: Error: Undefined name 'property'.
|
||||
// Class.redirect() : this(property);
|
||||
// ^^^^^^^^
|
||||
//
|
||||
|
@ -41,16 +41,16 @@ class Super extends core::Object {
|
|||
class Class extends self::Super {
|
||||
field core::bool* field;
|
||||
constructor •(core::bool* value) → self::Class*
|
||||
: assert(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:15:16: Error: Getter not found: 'property'.
|
||||
: assert(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:15:16: Error: Undefined name 'property'.
|
||||
: assert(property),
|
||||
^^^^^^^^"), self::Class::field = invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:16:22: Error: Getter not found: 'property'.
|
||||
^^^^^^^^"), self::Class::field = invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:16:22: Error: Undefined name 'property'.
|
||||
this.field = property,
|
||||
^^^^^^^^", super self::Super::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:17:15: Error: Getter not found: 'property'.
|
||||
^^^^^^^^", super self::Super::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:17:15: Error: Undefined name 'property'.
|
||||
super(property);
|
||||
^^^^^^^^")
|
||||
;
|
||||
constructor redirect() → self::Class*
|
||||
: this self::Class::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:19:27: Error: Getter not found: 'property'.
|
||||
: this self::Class::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:19:27: Error: Undefined name 'property'.
|
||||
Class.redirect() : this(property);
|
||||
^^^^^^^^")
|
||||
;
|
||||
|
|
|
@ -2,19 +2,19 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:15:16: Error: Getter not found: 'property'.
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:15:16: Error: Undefined name 'property'.
|
||||
// : assert(property),
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:16:22: Error: Getter not found: 'property'.
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:16:22: Error: Undefined name 'property'.
|
||||
// this.field = property,
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:17:15: Error: Getter not found: 'property'.
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:17:15: Error: Undefined name 'property'.
|
||||
// super(property);
|
||||
// ^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:19:27: Error: Getter not found: 'property'.
|
||||
// pkg/front_end/testcases/general/super_access_in_initializer.dart:19:27: Error: Undefined name 'property'.
|
||||
// Class.redirect() : this(property);
|
||||
// ^^^^^^^^
|
||||
//
|
||||
|
@ -41,16 +41,16 @@ class Super extends core::Object {
|
|||
class Class extends self::Super {
|
||||
field core::bool* field;
|
||||
constructor •(core::bool* value) → self::Class*
|
||||
: assert(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:15:16: Error: Getter not found: 'property'.
|
||||
: assert(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:15:16: Error: Undefined name 'property'.
|
||||
: assert(property),
|
||||
^^^^^^^^"), self::Class::field = invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:16:22: Error: Getter not found: 'property'.
|
||||
^^^^^^^^"), self::Class::field = invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:16:22: Error: Undefined name 'property'.
|
||||
this.field = property,
|
||||
^^^^^^^^", super self::Super::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:17:15: Error: Getter not found: 'property'.
|
||||
^^^^^^^^", super self::Super::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:17:15: Error: Undefined name 'property'.
|
||||
super(property);
|
||||
^^^^^^^^")
|
||||
;
|
||||
constructor redirect() → self::Class*
|
||||
: this self::Class::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:19:27: Error: Getter not found: 'property'.
|
||||
: this self::Class::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:19:27: Error: Undefined name 'property'.
|
||||
Class.redirect() : this(property);
|
||||
^^^^^^^^")
|
||||
;
|
||||
|
|
|
@ -2,23 +2,23 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/tabs.dart:9:9: Error: Getter not found: 'one'.
|
||||
// pkg/front_end/testcases/general/tabs.dart:9:9: Error: Undefined name 'one'.
|
||||
// print(one);
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/tabs.dart:10:9: Error: Getter not found: 'two'.
|
||||
// pkg/front_end/testcases/general/tabs.dart:10:9: Error: Undefined name 'two'.
|
||||
// print(two);
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/tabs.dart:11:9: Error: Getter not found: 'three'.
|
||||
// pkg/front_end/testcases/general/tabs.dart:11:9: Error: Undefined name 'three'.
|
||||
// print(three);
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/tabs.dart:12:9: Error: Getter not found: 'four'.
|
||||
// pkg/front_end/testcases/general/tabs.dart:12:9: Error: Undefined name 'four'.
|
||||
// print(four);
|
||||
// ^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/tabs.dart:13:9: Error: Getter not found: 'five'.
|
||||
// pkg/front_end/testcases/general/tabs.dart:13:9: Error: Undefined name 'five'.
|
||||
// print(five);
|
||||
// ^^^^
|
||||
//
|
||||
|
@ -26,19 +26,19 @@ import self as self;
|
|||
import "dart:core" as core;
|
||||
|
||||
static method test() → dynamic {
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:9:9: Error: Getter not found: 'one'.
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:9:9: Error: Undefined name 'one'.
|
||||
print(one);
|
||||
^^^");
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:10:9: Error: Getter not found: 'two'.
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:10:9: Error: Undefined name 'two'.
|
||||
print(two);
|
||||
^^^");
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:11:9: Error: Getter not found: 'three'.
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:11:9: Error: Undefined name 'three'.
|
||||
print(three);
|
||||
^^^^^");
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:12:9: Error: Getter not found: 'four'.
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:12:9: Error: Undefined name 'four'.
|
||||
print(four);
|
||||
^^^^");
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:13:9: Error: Getter not found: 'five'.
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:13:9: Error: Undefined name 'five'.
|
||||
print(five);
|
||||
^^^^");
|
||||
}
|
||||
|
|
|
@ -2,23 +2,23 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/tabs.dart:9:9: Error: Getter not found: 'one'.
|
||||
// pkg/front_end/testcases/general/tabs.dart:9:9: Error: Undefined name 'one'.
|
||||
// print(one);
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/tabs.dart:10:9: Error: Getter not found: 'two'.
|
||||
// pkg/front_end/testcases/general/tabs.dart:10:9: Error: Undefined name 'two'.
|
||||
// print(two);
|
||||
// ^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/tabs.dart:11:9: Error: Getter not found: 'three'.
|
||||
// pkg/front_end/testcases/general/tabs.dart:11:9: Error: Undefined name 'three'.
|
||||
// print(three);
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/tabs.dart:12:9: Error: Getter not found: 'four'.
|
||||
// pkg/front_end/testcases/general/tabs.dart:12:9: Error: Undefined name 'four'.
|
||||
// print(four);
|
||||
// ^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/tabs.dart:13:9: Error: Getter not found: 'five'.
|
||||
// pkg/front_end/testcases/general/tabs.dart:13:9: Error: Undefined name 'five'.
|
||||
// print(five);
|
||||
// ^^^^
|
||||
//
|
||||
|
@ -26,19 +26,19 @@ import self as self;
|
|||
import "dart:core" as core;
|
||||
|
||||
static method test() → dynamic {
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:9:9: Error: Getter not found: 'one'.
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:9:9: Error: Undefined name 'one'.
|
||||
print(one);
|
||||
^^^");
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:10:9: Error: Getter not found: 'two'.
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:10:9: Error: Undefined name 'two'.
|
||||
print(two);
|
||||
^^^");
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:11:9: Error: Getter not found: 'three'.
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:11:9: Error: Undefined name 'three'.
|
||||
print(three);
|
||||
^^^^^");
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:12:9: Error: Getter not found: 'four'.
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:12:9: Error: Undefined name 'four'.
|
||||
print(four);
|
||||
^^^^");
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:13:9: Error: Getter not found: 'five'.
|
||||
core::print(invalid-expression "pkg/front_end/testcases/general/tabs.dart:13:9: Error: Undefined name 'five'.
|
||||
print(five);
|
||||
^^^^");
|
||||
}
|
||||
|
|
|
@ -0,0 +1,159 @@
|
|||
// Copyright (c) 2021, 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.
|
||||
|
||||
import 'unresolved_constructor_invocation.dart' as resolved_prefix;
|
||||
|
||||
class Super {
|
||||
Super.named();
|
||||
}
|
||||
|
||||
class Class extends Super {
|
||||
Class.constructor1() : super();
|
||||
Class.constructor2() : super.unresolved();
|
||||
Class.constructor3() : this();
|
||||
Class.constructor4() : this.unresolved();
|
||||
}
|
||||
|
||||
class ResolvedClass<T> {
|
||||
ResolvedClass.named();
|
||||
}
|
||||
|
||||
test() {
|
||||
UnresolvedClass();
|
||||
new UnresolvedClass();
|
||||
const UnresolvedClass();
|
||||
|
||||
UnresolvedClass.unresolvedConstructor();
|
||||
new UnresolvedClass.unresolvedConstructor();
|
||||
const UnresolvedClass.unresolvedConstructor();
|
||||
UnresolvedClass /**/ .unresolvedConstructor();
|
||||
new UnresolvedClass. /**/ unresolvedConstructor();
|
||||
const UnresolvedClass /**/ .unresolvedConstructor();
|
||||
|
||||
unresolved_prefix.UnresolvedClass();
|
||||
new unresolved_prefix.UnresolvedClass();
|
||||
const unresolved_prefix.UnresolvedClass();
|
||||
unresolved_prefix. /**/ UnresolvedClass();
|
||||
new unresolved_prefix /**/ .UnresolvedClass();
|
||||
const unresolved_prefix. /**/ UnresolvedClass();
|
||||
|
||||
unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
new unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
const unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
unresolved_prefix /**/ .UnresolvedClass.unresolvedConstructor();
|
||||
new unresolved_prefix.UnresolvedClass /**/ .unresolvedConstructor();
|
||||
const unresolved_prefix. /**/ UnresolvedClass. /**/ unresolvedConstructor();
|
||||
|
||||
UnresolvedClass<int>();
|
||||
new UnresolvedClass<int>();
|
||||
const UnresolvedClass<int>();
|
||||
UnresolvedClass /**/ <int>();
|
||||
new UnresolvedClass<int> /**/ ();
|
||||
const UnresolvedClass /**/ <int>();
|
||||
|
||||
UnresolvedClass<int>.unresolvedConstructor();
|
||||
new UnresolvedClass<int>.unresolvedConstructor();
|
||||
const UnresolvedClass<int>.unresolvedConstructor();
|
||||
UnresolvedClass /**/ <int>.unresolvedConstructor();
|
||||
new UnresolvedClass<int> /**/ .unresolvedConstructor();
|
||||
const UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
|
||||
unresolved_prefix.UnresolvedClass<int>();
|
||||
new unresolved_prefix.UnresolvedClass<int>();
|
||||
const unresolved_prefix.UnresolvedClass<int>();
|
||||
unresolved_prefix /**/ .UnresolvedClass<int>();
|
||||
new unresolved_prefix.UnresolvedClass /**/ <int>();
|
||||
const unresolved_prefix.UnresolvedClass<int> /**/ ();
|
||||
|
||||
unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
new unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
const unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
unresolved_prefix /**/ .UnresolvedClass<int>.unresolvedConstructor();
|
||||
new unresolved_prefix.UnresolvedClass /**/ <int>.unresolvedConstructor();
|
||||
const unresolved_prefix.UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
|
||||
ResolvedClass();
|
||||
new ResolvedClass();
|
||||
const ResolvedClass();
|
||||
|
||||
ResolvedClass.unresolvedConstructor();
|
||||
new ResolvedClass.unresolvedConstructor();
|
||||
const ResolvedClass.unresolvedConstructor();
|
||||
ResolvedClass /**/ .unresolvedConstructor();
|
||||
new ResolvedClass. /**/ unresolvedConstructor();
|
||||
const ResolvedClass /**/ .unresolvedConstructor();
|
||||
|
||||
resolved_prefix.UnresolvedClass();
|
||||
new resolved_prefix.UnresolvedClass();
|
||||
const resolved_prefix.UnresolvedClass();
|
||||
resolved_prefix. /**/ UnresolvedClass();
|
||||
new resolved_prefix /**/ .UnresolvedClass();
|
||||
const resolved_prefix. /**/ UnresolvedClass();
|
||||
|
||||
resolved_prefix.ResolvedClass();
|
||||
new resolved_prefix.ResolvedClass();
|
||||
const resolved_prefix.ResolvedClass();
|
||||
resolved_prefix. /**/ ResolvedClass();
|
||||
new resolved_prefix /**/ .ResolvedClass();
|
||||
const resolved_prefix. /**/ ResolvedClass();
|
||||
|
||||
resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
new resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
const resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
resolved_prefix /**/ .UnresolvedClass.unresolvedConstructor();
|
||||
new resolved_prefix.UnresolvedClass /**/ .unresolvedConstructor();
|
||||
const resolved_prefix. /**/ UnresolvedClass. /**/ unresolvedConstructor();
|
||||
|
||||
resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
new resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
const resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
resolved_prefix /**/ .ResolvedClass.unresolvedConstructor();
|
||||
new resolved_prefix.ResolvedClass /**/ .unresolvedConstructor();
|
||||
const resolved_prefix. /**/ ResolvedClass. /**/ unresolvedConstructor();
|
||||
|
||||
ResolvedClass<int>();
|
||||
new ResolvedClass<int>();
|
||||
const ResolvedClass<int>();
|
||||
ResolvedClass /**/ <int>();
|
||||
new ResolvedClass /**/ <int>();
|
||||
const ResolvedClass /**/ <int>();
|
||||
|
||||
ResolvedClass<int>.unresolvedConstructor();
|
||||
new ResolvedClass<int>.unresolvedConstructor();
|
||||
const ResolvedClass<int>.unresolvedConstructor();
|
||||
ResolvedClass<int> /**/ .unresolvedConstructor();
|
||||
new ResolvedClass<int>. /**/ unresolvedConstructor();
|
||||
const ResolvedClass /**/ <int>.unresolvedConstructor();
|
||||
|
||||
resolved_prefix.UnresolvedClass<int>();
|
||||
new resolved_prefix.UnresolvedClass<int>();
|
||||
const resolved_prefix.UnresolvedClass<int>();
|
||||
resolved_prefix. /**/ UnresolvedClass<int>();
|
||||
new resolved_prefix.UnresolvedClass /**/ <int>();
|
||||
const resolved_prefix.UnresolvedClass<int> /**/ ();
|
||||
|
||||
resolved_prefix.ResolvedClass<int>();
|
||||
new resolved_prefix.ResolvedClass<int>();
|
||||
const resolved_prefix.ResolvedClass<int>();
|
||||
resolved_prefix. /**/ ResolvedClass<int>();
|
||||
new resolved_prefix.ResolvedClass /**/ <int>();
|
||||
const resolved_prefix.ResolvedClass<int> /**/ ();
|
||||
|
||||
resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
new resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
const resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
resolved_prefix /**/ .UnresolvedClass<int>.unresolvedConstructor();
|
||||
new resolved_prefix.UnresolvedClass<int> /**/ .unresolvedConstructor();
|
||||
const resolved_prefix
|
||||
. /**/ UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
|
||||
resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
new resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
const resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
resolved_prefix /**/ .ResolvedClass<int>.unresolvedConstructor();
|
||||
new resolved_prefix.ResolvedClass<int> /**/ .unresolvedConstructor();
|
||||
const resolved_prefix. /**/ ResolvedClass<int>. /**/ unresolvedConstructor();
|
||||
}
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,19 @@
|
|||
import 'unresolved_constructor_invocation.dart' as resolved_prefix;
|
||||
|
||||
class Super {
|
||||
Super.named();
|
||||
}
|
||||
|
||||
class Class extends Super {
|
||||
Class.constructor1() : super();
|
||||
Class.constructor2() : super.unresolved();
|
||||
Class.constructor3() : this();
|
||||
Class.constructor4() : this.unresolved();
|
||||
}
|
||||
|
||||
class ResolvedClass<T> {
|
||||
ResolvedClass.named();
|
||||
}
|
||||
|
||||
test() {}
|
||||
main() {}
|
|
@ -0,0 +1,19 @@
|
|||
import 'unresolved_constructor_invocation.dart' as resolved_prefix;
|
||||
|
||||
class Class extends Super {
|
||||
Class.constructor1() : super();
|
||||
Class.constructor2() : super.unresolved();
|
||||
Class.constructor3() : this();
|
||||
Class.constructor4() : this.unresolved();
|
||||
}
|
||||
|
||||
class ResolvedClass<T> {
|
||||
ResolvedClass.named();
|
||||
}
|
||||
|
||||
class Super {
|
||||
Super.named();
|
||||
}
|
||||
|
||||
main() {}
|
||||
test() {}
|
|
@ -0,0 +1,858 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:12:26: Error: Superclass has no constructor named 'Super'.
|
||||
// Class.constructor1() : super();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:13:26: Error: Superclass has no constructor named 'Super.unresolved'.
|
||||
// Class.constructor2() : super.unresolved();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:14:26: Error: Couldn't find constructor 'Class'.
|
||||
// Class.constructor3() : this();
|
||||
// ^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:15:26: Error: Couldn't find constructor 'Class.unresolved'.
|
||||
// Class.constructor4() : this.unresolved();
|
||||
// ^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:23:3: Error: Method not found: 'UnresolvedClass'.
|
||||
// UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:24:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:25:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:27:3: Error: Undefined name 'UnresolvedClass'.
|
||||
// UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:28:7: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
// new UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:29:9: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
// const UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:30:3: Error: Undefined name 'UnresolvedClass'.
|
||||
// UnresolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:31:7: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
// new UnresolvedClass. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:32:9: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
// const UnresolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:34:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:35:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// new unresolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:36:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// const unresolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:37:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix. /**/ UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:38:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// new unresolved_prefix /**/ .UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:39:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// const unresolved_prefix. /**/ UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:41:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:42:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// new unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:43:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// const unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:44:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix /**/ .UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:45:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// new unresolved_prefix.UnresolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:46:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// const unresolved_prefix. /**/ UnresolvedClass. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:48:3: Error: Method not found: 'UnresolvedClass'.
|
||||
// UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:49:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:50:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:51:3: Error: Method not found: 'UnresolvedClass'.
|
||||
// UnresolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:52:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new UnresolvedClass<int> /**/ ();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:53:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const UnresolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:55:3: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:56:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:57:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:58:3: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// UnresolvedClass /**/ <int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:59:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new UnresolvedClass<int> /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:60:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:62:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:63:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// new unresolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:64:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// const unresolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:65:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix /**/ .UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:66:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// new unresolved_prefix.UnresolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:67:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// const unresolved_prefix.UnresolvedClass<int> /**/ ();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:69:3: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:70:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// new unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:71:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// const unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:72:3: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// unresolved_prefix /**/ .UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:73:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// new unresolved_prefix.UnresolvedClass /**/ <int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:74:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// const unresolved_prefix.UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:76:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:77:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:78:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:80:17: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
// ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:81:21: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:82:23: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:83:23: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
// ResolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:84:27: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new ResolvedClass. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:85:29: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const ResolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:87:19: Error: Method not found: 'UnresolvedClass'.
|
||||
// resolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:88:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:89:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:90:25: Error: Method not found: 'UnresolvedClass'.
|
||||
// resolved_prefix. /**/ UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:91:29: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix /**/ .UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:92:31: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix. /**/ UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:94:19: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// resolved_prefix.ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:95:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new resolved_prefix.ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:96:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const resolved_prefix.ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:97:25: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// resolved_prefix. /**/ ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:98:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new resolved_prefix /**/ .ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:99:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const resolved_prefix. /**/ ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:101:19: Error: Undefined name 'UnresolvedClass'.
|
||||
// resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:102:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:103:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:104:25: Error: Undefined name 'UnresolvedClass'.
|
||||
// resolved_prefix /**/ .UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:105:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:106:31: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix. /**/ UnresolvedClass. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:108:33: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
// resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:109:37: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:110:39: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:111:39: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
// resolved_prefix /**/ .ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:112:43: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new resolved_prefix.ResolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:113:51: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const resolved_prefix. /**/ ResolvedClass. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:115:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:116:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:117:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:118:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// ResolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:119:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new ResolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:120:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const ResolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:122:22: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:123:26: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:124:28: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:125:28: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// ResolvedClass<int> /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:126:32: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new ResolvedClass<int>. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:127:34: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const ResolvedClass /**/ <int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:129:19: Error: Method not found: 'UnresolvedClass'.
|
||||
// resolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:130:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:131:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:132:25: Error: Method not found: 'UnresolvedClass'.
|
||||
// resolved_prefix. /**/ UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:133:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:134:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix.UnresolvedClass<int> /**/ ();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:136:19: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// resolved_prefix.ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:137:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new resolved_prefix.ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:138:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const resolved_prefix.ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:139:25: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// resolved_prefix. /**/ ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:140:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new resolved_prefix.ResolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:141:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const resolved_prefix.ResolvedClass<int> /**/ ();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:143:19: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:144:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:145:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:146:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// resolved_prefix /**/ .UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:147:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass<int> /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:149:14: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// . /**/ UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:151:38: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:152:42: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:153:44: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:154:44: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// resolved_prefix /**/ .ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:155:48: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new resolved_prefix.ResolvedClass<int> /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:156:56: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const resolved_prefix. /**/ ResolvedClass<int>. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///unresolved_constructor_invocation.dart" as resolved_prefix;
|
||||
|
||||
class Super extends core::Object {
|
||||
constructor named() → self::Super
|
||||
: super core::Object::•()
|
||||
;
|
||||
}
|
||||
class Class extends self::Super {
|
||||
constructor constructor1() → self::Class
|
||||
: final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:12:26: Error: Superclass has no constructor named 'Super'.
|
||||
Class.constructor1() : super();
|
||||
^^^^^"
|
||||
;
|
||||
constructor constructor2() → self::Class
|
||||
: final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:13:26: Error: Superclass has no constructor named 'Super.unresolved'.
|
||||
Class.constructor2() : super.unresolved();
|
||||
^^^^^"
|
||||
;
|
||||
constructor constructor3() → self::Class
|
||||
: final dynamic #t3 = invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:14:26: Error: Couldn't find constructor 'Class'.
|
||||
Class.constructor3() : this();
|
||||
^^^^"
|
||||
;
|
||||
constructor constructor4() → self::Class
|
||||
: final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:15:26: Error: Couldn't find constructor 'Class.unresolved'.
|
||||
Class.constructor4() : this.unresolved();
|
||||
^^^^"
|
||||
;
|
||||
}
|
||||
class ResolvedClass<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor named() → self::ResolvedClass<self::ResolvedClass::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
}
|
||||
static method test() → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:23:3: Error: Method not found: 'UnresolvedClass'.
|
||||
UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:24:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:25:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:27:3: Error: Undefined name 'UnresolvedClass'.
|
||||
UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^"{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:28:7: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
new UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:29:9: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
const UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:30:3: Error: Undefined name 'UnresolvedClass'.
|
||||
UnresolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^"{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:31:7: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
new UnresolvedClass. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:32:9: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
const UnresolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:34:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}.UnresolvedClass();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:35:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
new unresolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:36:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
const unresolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:37:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix. /**/ UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}.UnresolvedClass();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:38:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
new unresolved_prefix /**/ .UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:39:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
const unresolved_prefix. /**/ UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:41:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^"{<invalid>}.UnresolvedClass{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:42:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
new unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:43:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
const unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:44:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix /**/ .UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^"{<invalid>}.UnresolvedClass{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:45:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
new unresolved_prefix.UnresolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:46:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
const unresolved_prefix. /**/ UnresolvedClass. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:48:3: Error: Method not found: 'UnresolvedClass'.
|
||||
UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:49:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:50:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:51:3: Error: Method not found: 'UnresolvedClass'.
|
||||
UnresolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:52:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new UnresolvedClass<int> /**/ ();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:53:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const UnresolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:55:3: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:56:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:57:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:58:3: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
UnresolvedClass /**/ <int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:59:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new UnresolvedClass<int> /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:60:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:62:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}.UnresolvedClass<core::int>();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:63:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
new unresolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:64:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
const unresolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:65:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix /**/ .UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}.UnresolvedClass<core::int>();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:66:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
new unresolved_prefix.UnresolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:67:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
const unresolved_prefix.UnresolvedClass<int> /**/ ();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:69:3: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:70:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
new unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:71:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
const unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:72:3: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
unresolved_prefix /**/ .UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:73:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
new unresolved_prefix.UnresolvedClass /**/ <int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:74:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
const unresolved_prefix.UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:76:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:77:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:78:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:80:17: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:81:21: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:82:23: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:83:23: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
ResolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:84:27: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new ResolvedClass. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:85:29: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const ResolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:87:19: Error: Method not found: 'UnresolvedClass'.
|
||||
resolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:88:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:89:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:90:25: Error: Method not found: 'UnresolvedClass'.
|
||||
resolved_prefix. /**/ UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:91:29: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix /**/ .UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:92:31: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix. /**/ UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:94:19: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
resolved_prefix.ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:95:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new resolved_prefix.ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:96:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const resolved_prefix.ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:97:25: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
resolved_prefix. /**/ ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:98:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new resolved_prefix /**/ .ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:99:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const resolved_prefix. /**/ ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:101:19: Error: Undefined name 'UnresolvedClass'.
|
||||
resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^"{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:102:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:103:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:104:25: Error: Undefined name 'UnresolvedClass'.
|
||||
resolved_prefix /**/ .UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^"{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:105:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:106:31: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix. /**/ UnresolvedClass. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:108:33: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:109:37: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:110:39: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:111:39: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
resolved_prefix /**/ .ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:112:43: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new resolved_prefix.ResolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:113:51: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const resolved_prefix. /**/ ResolvedClass. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:115:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:116:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:117:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:118:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
ResolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:119:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new ResolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:120:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const ResolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:122:22: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:123:26: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:124:28: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:125:28: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
ResolvedClass<int> /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:126:32: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new ResolvedClass<int>. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:127:34: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const ResolvedClass /**/ <int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:129:19: Error: Method not found: 'UnresolvedClass'.
|
||||
resolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:130:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:131:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:132:25: Error: Method not found: 'UnresolvedClass'.
|
||||
resolved_prefix. /**/ UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:133:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:134:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix.UnresolvedClass<int> /**/ ();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:136:19: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
resolved_prefix.ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:137:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new resolved_prefix.ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:138:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const resolved_prefix.ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:139:25: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
resolved_prefix. /**/ ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:140:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new resolved_prefix.ResolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:141:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const resolved_prefix.ResolvedClass<int> /**/ ();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:143:19: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:144:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:145:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:146:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
resolved_prefix /**/ .UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:147:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass<int> /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:149:14: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
. /**/ UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:151:38: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:152:42: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:153:44: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:154:44: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
resolved_prefix /**/ .ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:155:48: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new resolved_prefix.ResolvedClass<int> /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:156:56: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const resolved_prefix. /**/ ResolvedClass<int>. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
}
|
||||
static method main() → dynamic {}
|
|
@ -0,0 +1,28 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///unresolved_constructor_invocation.dart" as resolved_prefix;
|
||||
|
||||
class Super extends core::Object {
|
||||
constructor named() → self::Super
|
||||
;
|
||||
}
|
||||
class Class extends self::Super {
|
||||
constructor constructor1() → self::Class
|
||||
;
|
||||
constructor constructor2() → self::Class
|
||||
;
|
||||
constructor constructor3() → self::Class
|
||||
;
|
||||
constructor constructor4() → self::Class
|
||||
;
|
||||
}
|
||||
class ResolvedClass<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor named() → self::ResolvedClass<self::ResolvedClass::T%>
|
||||
;
|
||||
}
|
||||
static method test() → dynamic
|
||||
;
|
||||
static method main() → dynamic
|
||||
;
|
|
@ -0,0 +1,858 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:12:26: Error: Superclass has no constructor named 'Super'.
|
||||
// Class.constructor1() : super();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:13:26: Error: Superclass has no constructor named 'Super.unresolved'.
|
||||
// Class.constructor2() : super.unresolved();
|
||||
// ^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:14:26: Error: Couldn't find constructor 'Class'.
|
||||
// Class.constructor3() : this();
|
||||
// ^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:15:26: Error: Couldn't find constructor 'Class.unresolved'.
|
||||
// Class.constructor4() : this.unresolved();
|
||||
// ^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:23:3: Error: Method not found: 'UnresolvedClass'.
|
||||
// UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:24:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:25:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:27:3: Error: Undefined name 'UnresolvedClass'.
|
||||
// UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:28:7: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
// new UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:29:9: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
// const UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:30:3: Error: Undefined name 'UnresolvedClass'.
|
||||
// UnresolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:31:7: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
// new UnresolvedClass. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:32:9: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
// const UnresolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:34:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:35:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// new unresolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:36:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// const unresolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:37:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix. /**/ UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:38:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// new unresolved_prefix /**/ .UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:39:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// const unresolved_prefix. /**/ UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:41:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:42:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// new unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:43:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// const unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:44:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix /**/ .UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:45:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// new unresolved_prefix.UnresolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:46:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// const unresolved_prefix. /**/ UnresolvedClass. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:48:3: Error: Method not found: 'UnresolvedClass'.
|
||||
// UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:49:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:50:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:51:3: Error: Method not found: 'UnresolvedClass'.
|
||||
// UnresolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:52:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new UnresolvedClass<int> /**/ ();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:53:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const UnresolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:55:3: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:56:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:57:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:58:3: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// UnresolvedClass /**/ <int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:59:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new UnresolvedClass<int> /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:60:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:62:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:63:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// new unresolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:64:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// const unresolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:65:3: Error: Undefined name 'unresolved_prefix'.
|
||||
// unresolved_prefix /**/ .UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:66:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// new unresolved_prefix.UnresolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:67:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
// const unresolved_prefix.UnresolvedClass<int> /**/ ();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:69:3: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:70:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// new unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:71:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// const unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:72:3: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// unresolved_prefix /**/ .UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:73:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// new unresolved_prefix.UnresolvedClass /**/ <int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:74:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
// const unresolved_prefix.UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:76:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:77:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:78:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:80:17: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
// ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:81:21: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:82:23: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:83:23: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
// ResolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:84:27: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new ResolvedClass. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:85:29: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const ResolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:87:19: Error: Method not found: 'UnresolvedClass'.
|
||||
// resolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:88:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:89:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix.UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:90:25: Error: Method not found: 'UnresolvedClass'.
|
||||
// resolved_prefix. /**/ UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:91:29: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix /**/ .UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:92:31: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix. /**/ UnresolvedClass();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:94:19: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// resolved_prefix.ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:95:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new resolved_prefix.ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:96:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const resolved_prefix.ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:97:25: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// resolved_prefix. /**/ ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:98:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new resolved_prefix /**/ .ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:99:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const resolved_prefix. /**/ ResolvedClass();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:101:19: Error: Undefined name 'UnresolvedClass'.
|
||||
// resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:102:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:103:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:104:25: Error: Undefined name 'UnresolvedClass'.
|
||||
// resolved_prefix /**/ .UnresolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:105:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:106:31: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix. /**/ UnresolvedClass. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:108:33: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
// resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:109:37: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:110:39: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:111:39: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
// resolved_prefix /**/ .ResolvedClass.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:112:43: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new resolved_prefix.ResolvedClass /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:113:51: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const resolved_prefix. /**/ ResolvedClass. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:115:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:116:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:117:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:118:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// ResolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:119:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new ResolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:120:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const ResolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:122:22: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:123:26: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:124:28: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:125:28: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// ResolvedClass<int> /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:126:32: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new ResolvedClass<int>. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:127:34: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const ResolvedClass /**/ <int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:129:19: Error: Method not found: 'UnresolvedClass'.
|
||||
// resolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:130:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:131:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix.UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:132:25: Error: Method not found: 'UnresolvedClass'.
|
||||
// resolved_prefix. /**/ UnresolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:133:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:134:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix.UnresolvedClass<int> /**/ ();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:136:19: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// resolved_prefix.ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:137:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new resolved_prefix.ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:138:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const resolved_prefix.ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:139:25: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// resolved_prefix. /**/ ResolvedClass<int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:140:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// new resolved_prefix.ResolvedClass /**/ <int>();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:141:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
// const resolved_prefix.ResolvedClass<int> /**/ ();
|
||||
// ^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:143:19: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:144:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:145:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// const resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:146:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// resolved_prefix /**/ .UnresolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:147:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// new resolved_prefix.UnresolvedClass<int> /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:149:14: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
// . /**/ UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:151:38: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:152:42: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:153:44: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:154:44: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// resolved_prefix /**/ .ResolvedClass<int>.unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:155:48: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// new resolved_prefix.ResolvedClass<int> /**/ .unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:156:56: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
// const resolved_prefix. /**/ ResolvedClass<int>. /**/ unresolvedConstructor();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
import self as self;
|
||||
import "dart:core" as core;
|
||||
|
||||
import "org-dartlang-testcase:///unresolved_constructor_invocation.dart" as resolved_prefix;
|
||||
|
||||
class Super extends core::Object {
|
||||
constructor named() → self::Super
|
||||
: super core::Object::•()
|
||||
;
|
||||
}
|
||||
class Class extends self::Super {
|
||||
constructor constructor1() → self::Class
|
||||
: final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:12:26: Error: Superclass has no constructor named 'Super'.
|
||||
Class.constructor1() : super();
|
||||
^^^^^"
|
||||
;
|
||||
constructor constructor2() → self::Class
|
||||
: final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:13:26: Error: Superclass has no constructor named 'Super.unresolved'.
|
||||
Class.constructor2() : super.unresolved();
|
||||
^^^^^"
|
||||
;
|
||||
constructor constructor3() → self::Class
|
||||
: final dynamic #t3 = invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:14:26: Error: Couldn't find constructor 'Class'.
|
||||
Class.constructor3() : this();
|
||||
^^^^"
|
||||
;
|
||||
constructor constructor4() → self::Class
|
||||
: final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:15:26: Error: Couldn't find constructor 'Class.unresolved'.
|
||||
Class.constructor4() : this.unresolved();
|
||||
^^^^"
|
||||
;
|
||||
}
|
||||
class ResolvedClass<T extends core::Object? = dynamic> extends core::Object {
|
||||
constructor named() → self::ResolvedClass<self::ResolvedClass::T%>
|
||||
: super core::Object::•()
|
||||
;
|
||||
}
|
||||
static method test() → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:23:3: Error: Method not found: 'UnresolvedClass'.
|
||||
UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:24:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:25:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:27:3: Error: Undefined name 'UnresolvedClass'.
|
||||
UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^"{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:28:7: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
new UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:29:9: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
const UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:30:3: Error: Undefined name 'UnresolvedClass'.
|
||||
UnresolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^"{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:31:7: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
new UnresolvedClass. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:32:9: Error: Couldn't find constructor 'UnresolvedClass.unresolvedConstructor'.
|
||||
const UnresolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:34:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}.UnresolvedClass();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:35:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
new unresolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:36:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
const unresolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:37:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix. /**/ UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}.UnresolvedClass();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:38:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
new unresolved_prefix /**/ .UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:39:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
const unresolved_prefix. /**/ UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:41:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^"{<invalid>}.UnresolvedClass{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:42:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
new unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:43:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
const unresolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:44:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix /**/ .UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^"{<invalid>}.UnresolvedClass{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:45:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
new unresolved_prefix.UnresolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:46:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
const unresolved_prefix. /**/ UnresolvedClass. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:48:3: Error: Method not found: 'UnresolvedClass'.
|
||||
UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:49:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:50:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:51:3: Error: Method not found: 'UnresolvedClass'.
|
||||
UnresolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:52:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new UnresolvedClass<int> /**/ ();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:53:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const UnresolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:55:3: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:56:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:57:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:58:3: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
UnresolvedClass /**/ <int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:59:7: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new UnresolvedClass<int> /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:60:9: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:62:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}.UnresolvedClass<core::int>();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:63:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
new unresolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:64:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
const unresolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:65:3: Error: Undefined name 'unresolved_prefix'.
|
||||
unresolved_prefix /**/ .UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^^^"{dynamic}.UnresolvedClass<core::int>();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:66:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
new unresolved_prefix.UnresolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:67:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass'.
|
||||
const unresolved_prefix.UnresolvedClass<int> /**/ ();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:69:3: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:70:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
new unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:71:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
const unresolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:72:3: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
unresolved_prefix /**/ .UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:73:7: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
new unresolved_prefix.UnresolvedClass /**/ <int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:74:9: Error: Couldn't find constructor 'unresolved_prefix.UnresolvedClass.unresolvedConstructor'.
|
||||
const unresolved_prefix.UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:76:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:77:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:78:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:80:17: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:81:21: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:82:23: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:83:23: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
ResolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:84:27: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new ResolvedClass. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:85:29: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const ResolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:87:19: Error: Method not found: 'UnresolvedClass'.
|
||||
resolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:88:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:89:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix.UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:90:25: Error: Method not found: 'UnresolvedClass'.
|
||||
resolved_prefix. /**/ UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:91:29: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix /**/ .UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:92:31: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix. /**/ UnresolvedClass();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:94:19: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
resolved_prefix.ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:95:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new resolved_prefix.ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:96:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const resolved_prefix.ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:97:25: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
resolved_prefix. /**/ ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:98:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new resolved_prefix /**/ .ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:99:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const resolved_prefix. /**/ ResolvedClass();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:101:19: Error: Undefined name 'UnresolvedClass'.
|
||||
resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^"{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:102:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:103:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix.UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:104:25: Error: Undefined name 'UnresolvedClass'.
|
||||
resolved_prefix /**/ .UnresolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^"{dynamic}.unresolvedConstructor();
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:105:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:106:31: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix. /**/ UnresolvedClass. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:108:33: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:109:37: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:110:39: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const resolved_prefix.ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:111:39: Error: Member not found: 'ResolvedClass.unresolvedConstructor'.
|
||||
resolved_prefix /**/ .ResolvedClass.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:112:43: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new resolved_prefix.ResolvedClass /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:113:51: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const resolved_prefix. /**/ ResolvedClass. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:115:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:116:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:117:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:118:3: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
ResolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:119:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new ResolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:120:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const ResolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:122:22: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:123:26: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:124:28: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:125:28: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
ResolvedClass<int> /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:126:32: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new ResolvedClass<int>. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:127:34: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const ResolvedClass /**/ <int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:129:19: Error: Method not found: 'UnresolvedClass'.
|
||||
resolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:130:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:131:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix.UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:132:25: Error: Method not found: 'UnresolvedClass'.
|
||||
resolved_prefix. /**/ UnresolvedClass<int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:133:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:134:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix.UnresolvedClass<int> /**/ ();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:136:19: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
resolved_prefix.ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:137:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new resolved_prefix.ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:138:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const resolved_prefix.ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:139:25: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
resolved_prefix. /**/ ResolvedClass<int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:140:7: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
new resolved_prefix.ResolvedClass /**/ <int>();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:141:9: Error: Couldn't find constructor 'ResolvedClass'.
|
||||
const resolved_prefix.ResolvedClass<int> /**/ ();
|
||||
^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:143:19: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:144:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:145:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
const resolved_prefix.UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:146:25: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
resolved_prefix /**/ .UnresolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:147:23: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
new resolved_prefix.UnresolvedClass<int> /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:149:14: Error: Couldn't find constructor 'UnresolvedClass'.
|
||||
. /**/ UnresolvedClass<int>. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:151:38: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:152:42: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:153:44: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const resolved_prefix.ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:154:44: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
resolved_prefix /**/ .ResolvedClass<int>.unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:155:48: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
new resolved_prefix.ResolvedClass<int> /**/ .unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
invalid-expression "pkg/front_end/testcases/general/unresolved_constructor_invocation.dart:156:56: Error: Couldn't find constructor 'ResolvedClass.unresolvedConstructor'.
|
||||
const resolved_prefix. /**/ ResolvedClass<int>. /**/ unresolvedConstructor();
|
||||
^^^^^^^^^^^^^^^^^^^^^";
|
||||
}
|
||||
static method main() → dynamic {}
|
|
@ -2,7 +2,7 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/with_dependencies/issue_43084/issue_43084.dart:8:20: Error: Method not found: 'Bar'.
|
||||
// pkg/front_end/testcases/general/with_dependencies/issue_43084/issue_43084.dart:8:20: Error: Couldn't find constructor 'Bar'.
|
||||
// Bar<int> x = new Bar<int>();
|
||||
// ^^^
|
||||
//
|
||||
|
@ -12,7 +12,7 @@ import "dart:core" as core;
|
|||
import "org-dartlang-testcase:///issue_43084_lib.dart";
|
||||
|
||||
static method main() → dynamic {
|
||||
invalid-type x = invalid-expression "pkg/front_end/testcases/general/with_dependencies/issue_43084/issue_43084.dart:8:20: Error: Method not found: 'Bar'.
|
||||
invalid-type x = invalid-expression "pkg/front_end/testcases/general/with_dependencies/issue_43084/issue_43084.dart:8:20: Error: Couldn't find constructor 'Bar'.
|
||||
Bar<int> x = new Bar<int>();
|
||||
^^^";
|
||||
core::print(x);
|
||||
|
|
|
@ -2,7 +2,7 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/with_dependencies/issue_43084/issue_43084.dart:8:20: Error: Method not found: 'Bar'.
|
||||
// pkg/front_end/testcases/general/with_dependencies/issue_43084/issue_43084.dart:8:20: Error: Couldn't find constructor 'Bar'.
|
||||
// Bar<int> x = new Bar<int>();
|
||||
// ^^^
|
||||
//
|
||||
|
@ -12,7 +12,7 @@ import "dart:core" as core;
|
|||
import "org-dartlang-testcase:///issue_43084_lib.dart";
|
||||
|
||||
static method main() → dynamic {
|
||||
invalid-type x = invalid-expression "pkg/front_end/testcases/general/with_dependencies/issue_43084/issue_43084.dart:8:20: Error: Method not found: 'Bar'.
|
||||
invalid-type x = invalid-expression "pkg/front_end/testcases/general/with_dependencies/issue_43084/issue_43084.dart:8:20: Error: Couldn't find constructor 'Bar'.
|
||||
Bar<int> x = new Bar<int>();
|
||||
^^^";
|
||||
core::print(x);
|
||||
|
|
|
@ -2,7 +2,7 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/with_dependencies/issue_43084_2/issue_43084.dart:8:3: Error: Method not found: 'F'.
|
||||
// pkg/front_end/testcases/general/with_dependencies/issue_43084_2/issue_43084.dart:8:3: Error: Couldn't find constructor 'F'.
|
||||
// F();
|
||||
// ^
|
||||
//
|
||||
|
@ -11,7 +11,7 @@ import self as self;
|
|||
import "org-dartlang-testcase:///issue_43084_lib.dart";
|
||||
|
||||
static method test() → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/general/with_dependencies/issue_43084_2/issue_43084.dart:8:3: Error: Method not found: 'F'.
|
||||
invalid-expression "pkg/front_end/testcases/general/with_dependencies/issue_43084_2/issue_43084.dart:8:3: Error: Couldn't find constructor 'F'.
|
||||
F();
|
||||
^";
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ library;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/general/with_dependencies/issue_43084_2/issue_43084.dart:8:3: Error: Method not found: 'F'.
|
||||
// pkg/front_end/testcases/general/with_dependencies/issue_43084_2/issue_43084.dart:8:3: Error: Couldn't find constructor 'F'.
|
||||
// F();
|
||||
// ^
|
||||
//
|
||||
|
@ -11,7 +11,7 @@ import self as self;
|
|||
import "org-dartlang-testcase:///issue_43084_lib.dart";
|
||||
|
||||
static method test() → dynamic {
|
||||
invalid-expression "pkg/front_end/testcases/general/with_dependencies/issue_43084_2/issue_43084.dart:8:3: Error: Method not found: 'F'.
|
||||
invalid-expression "pkg/front_end/testcases/general/with_dependencies/issue_43084_2/issue_43084.dart:8:3: Error: Couldn't find constructor 'F'.
|
||||
F();
|
||||
^";
|
||||
}
|
||||
|
|
|
@ -8,12 +8,12 @@ library from "package:untitled/main.dart" as main {
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// org-dartlang-test:///main.dart:2:3: Error: Getter not found: 'asdf'.
|
||||
// org-dartlang-test:///main.dart:2:3: Error: Undefined name 'asdf'.
|
||||
// asdf;
|
||||
// ^^^^
|
||||
//
|
||||
|
||||
static method main() → dynamic {
|
||||
invalid-expression "org-dartlang-test:///main.dart:2:3: Error: Getter not found: 'asdf'.\n asdf;\n ^^^^";
|
||||
invalid-expression "org-dartlang-test:///main.dart:2:3: Error: Undefined name 'asdf'.\n asdf;\n ^^^^";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,11 +2,11 @@ library test;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Getter not found: 'x'.
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Undefined name 'x'.
|
||||
// var b = new B(/*error:UNDEFINED_IDENTIFIER*/ x); // allocations
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'.
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Undefined name 'x'.
|
||||
// /*error:UNDEFINED_IDENTIFIER*/ x
|
||||
// ^
|
||||
//
|
||||
|
@ -101,10 +101,10 @@ class B extends self::A {
|
|||
;
|
||||
}
|
||||
static field self::A* a = new self::A::•();
|
||||
static field self::B* b = new self::B::•(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Getter not found: 'x'.
|
||||
static field self::B* b = new self::B::•(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Undefined name 'x'.
|
||||
var b = new B(/*error:UNDEFINED_IDENTIFIER*/ x); // allocations
|
||||
^");
|
||||
static field core::List<invalid-type>* c1 = <invalid-type>[invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'.
|
||||
static field core::List<invalid-type>* c1 = <invalid-type>[invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Undefined name 'x'.
|
||||
/*error:UNDEFINED_IDENTIFIER*/ x
|
||||
^"];
|
||||
static field core::List<dynamic>* c2 = #C1;
|
||||
|
|
|
@ -2,11 +2,11 @@ library test;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Getter not found: 'x'.
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Undefined name 'x'.
|
||||
// var b = new B(/*error:UNDEFINED_IDENTIFIER*/ x); // allocations
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'.
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Undefined name 'x'.
|
||||
// /*error:UNDEFINED_IDENTIFIER*/ x
|
||||
// ^
|
||||
//
|
||||
|
|
|
@ -2,11 +2,11 @@ library test;
|
|||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Getter not found: 'x'.
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Undefined name 'x'.
|
||||
// var b = new B(/*error:UNDEFINED_IDENTIFIER*/ x); // allocations
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'.
|
||||
// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Undefined name 'x'.
|
||||
// /*error:UNDEFINED_IDENTIFIER*/ x
|
||||
// ^
|
||||
//
|
||||
|
@ -101,10 +101,10 @@ class B extends self::A {
|
|||
;
|
||||
}
|
||||
static field self::A* a = new self::A::•();
|
||||
static field self::B* b = new self::B::•(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Getter not found: 'x'.
|
||||
static field self::B* b = new self::B::•(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Undefined name 'x'.
|
||||
var b = new B(/*error:UNDEFINED_IDENTIFIER*/ x); // allocations
|
||||
^");
|
||||
static field core::List<invalid-type>* c1 = core::_GrowableList::_literal1<invalid-type>(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'.
|
||||
static field core::List<invalid-type>* c1 = core::_GrowableList::_literal1<invalid-type>(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Undefined name 'x'.
|
||||
/*error:UNDEFINED_IDENTIFIER*/ x
|
||||
^");
|
||||
static field core::List<dynamic>* c2 = #C1;
|
||||
|
|
|
@ -100,7 +100,7 @@ library /*isNonNullableByDefault*/;
|
|||
// topLevelMethodAndSetter = topLevelMethodAndSetter();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/nnbd/nonfield_vs_setter.dart:48:22: Error: Method not found: 'typedefAndSetter'.
|
||||
// pkg/front_end/testcases/nnbd/nonfield_vs_setter.dart:48:22: Error: Couldn't find constructor 'typedefAndSetter'.
|
||||
// typedefAndSetter = typedefAndSetter();
|
||||
// ^^^^^^^^^^^^^^^^
|
||||
//
|
||||
|
|
|
@ -100,7 +100,7 @@ library /*isNonNullableByDefault*/;
|
|||
// topLevelMethodAndSetter = topLevelMethodAndSetter();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/nnbd/nonfield_vs_setter.dart:48:22: Error: Method not found: 'typedefAndSetter'.
|
||||
// pkg/front_end/testcases/nnbd/nonfield_vs_setter.dart:48:22: Error: Couldn't find constructor 'typedefAndSetter'.
|
||||
// typedefAndSetter = typedefAndSetter();
|
||||
// ^^^^^^^^^^^^^^^^
|
||||
//
|
||||
|
|
|
@ -100,7 +100,7 @@ library /*isNonNullableByDefault*/;
|
|||
// topLevelMethodAndSetter = topLevelMethodAndSetter();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/nnbd/nonfield_vs_setter.dart:48:22: Error: Method not found: 'typedefAndSetter'.
|
||||
// pkg/front_end/testcases/nnbd/nonfield_vs_setter.dart:48:22: Error: Couldn't find constructor 'typedefAndSetter'.
|
||||
// typedefAndSetter = typedefAndSetter();
|
||||
// ^^^^^^^^^^^^^^^^
|
||||
//
|
||||
|
|
|
@ -100,7 +100,7 @@ library /*isNonNullableByDefault*/;
|
|||
// topLevelMethodAndSetter = topLevelMethodAndSetter();
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
//
|
||||
// pkg/front_end/testcases/nnbd/nonfield_vs_setter.dart:48:22: Error: Method not found: 'typedefAndSetter'.
|
||||
// pkg/front_end/testcases/nnbd/nonfield_vs_setter.dart:48:22: Error: Couldn't find constructor 'typedefAndSetter'.
|
||||
// typedefAndSetter = typedefAndSetter();
|
||||
// ^^^^^^^^^^^^^^^^
|
||||
//
|
||||
|
|
|
@ -20,7 +20,7 @@ library /*isNonNullableByDefault*/;
|
|||
// c.method()[0];
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/none/operator.dart:109:3: Error: Getter not found: 'string'.
|
||||
// pkg/front_end/testcases/none/operator.dart:109:3: Error: Undefined name 'string'.
|
||||
// string[0] = 42;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -28,7 +28,7 @@ library /*isNonNullableByDefault*/;
|
|||
// c.method()[0] = 42;
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/none/operator.dart:129:3: Error: Getter not found: 'string'.
|
||||
// pkg/front_end/testcases/none/operator.dart:129:3: Error: Undefined name 'string'.
|
||||
// string[0] += 42;
|
||||
// ^^^^^^
|
||||
//
|
||||
|
@ -136,7 +136,7 @@ static method indexSet(core::List<core::int> list, core::Map<core::String, core:
|
|||
c.method()[0] = 42;
|
||||
^" in c.{self::Class::method}{<inapplicable>}.(){() → invalid-type}{<invalid>}.[]=(0, 42);
|
||||
core::print("DynamicInvocation (Unresolved)");
|
||||
invalid-expression "pkg/front_end/testcases/none/operator.dart:109:3: Error: Getter not found: 'string'.
|
||||
invalid-expression "pkg/front_end/testcases/none/operator.dart:109:3: Error: Undefined name 'string'.
|
||||
string[0] = 42;
|
||||
^^^^^^"{<invalid>}.[]=(0, 42);
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ static method compound(core::List<core::int> list, core::Map<core::String, core:
|
|||
c.method()[0] += 42;
|
||||
^" in c.{self::Class::method}{<inapplicable>}.(){() → invalid-type} in let final core::int #t12 = 0 in #t11{<invalid>}.[]=(#t12, #t11{<invalid>}.[](#t12){<invalid>}.+(42));
|
||||
core::print("DynamicInvocation (Unresolved)");
|
||||
let final invalid-type #t13 = invalid-expression "pkg/front_end/testcases/none/operator.dart:129:3: Error: Getter not found: 'string'.
|
||||
let final invalid-type #t13 = invalid-expression "pkg/front_end/testcases/none/operator.dart:129:3: Error: Undefined name 'string'.
|
||||
string[0] += 42;
|
||||
^^^^^^" in let final core::int #t14 = 0 in #t13{<invalid>}.[]=(#t14, #t13{<invalid>}.[](#t14){<invalid>}.+(42));
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue