| Index: sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart b/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
|
| index a847d3efddfdca044a0fca8b5d4487d47e6f1e8a..9c467ba910bccf58f77f6ce7dc42587378c42425 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
|
| @@ -73,8 +73,7 @@ class TypeVariableHandler {
|
| for (TypeVariableType currentTypeVariable in cls.typeVariables) {
|
| List<Constant> createArguments(FunctionElement constructor) {
|
| if (constructor != typeVariableConstructor) {
|
| - compiler.internalErrorOnElement(
|
| - currentTypeVariable.element,
|
| + compiler.internalError(currentTypeVariable.element,
|
| 'Unexpected constructor $constructor');
|
| }
|
| Constant name = backend.constantSystem.createString(
|
| @@ -103,11 +102,8 @@ class TypeVariableHandler {
|
| typeVariableClass.ensureResolved(compiler);
|
| Link constructors = typeVariableClass.constructors;
|
| if (constructors.isEmpty && constructors.tail.isEmpty) {
|
| - compiler.reportInternalError(
|
| - typeVariableClass,
|
| - MessageKind.GENERIC,
|
| - {'text': "Class '$typeVariableClass' should only "
|
| - "have one constructor"});
|
| + compiler.internalError(typeVariableClass,
|
| + "Class '$typeVariableClass' should only have one constructor");
|
| }
|
| typeVariableConstructor = typeVariableClass.constructors.head;
|
| backend.enqueueInResolution(typeVariableConstructor,
|
|
|