Index: pkg/compiler/lib/src/compile_time_constants.dart |
diff --git a/pkg/compiler/lib/src/compile_time_constants.dart b/pkg/compiler/lib/src/compile_time_constants.dart |
index cfb0005640d1602b8c953e2734ac956768c549a6..3c4fc5e93732a1bb132861ee6a84ad6584a819fb 100644 |
--- a/pkg/compiler/lib/src/compile_time_constants.dart |
+++ b/pkg/compiler/lib/src/compile_time_constants.dart |
@@ -867,7 +867,7 @@ class CompileTimeConstantEvaluator extends Visitor<AstConstant> { |
target.computeType(resolution); |
- if (!callStructure.signatureApplies(target.type)) { |
+ if (!callStructure.signatureApplies(target.parameterStructure)) { |
String name = Elements.constructorNameForDiagnostics( |
target.enclosingClass.name, target.name); |
reporter.reportErrorMessage(node, |
@@ -1114,7 +1114,7 @@ class CompileTimeConstantEvaluator extends Visitor<AstConstant> { |
} |
assert(invariant( |
node, |
- callStructure.signatureApplies(constructor.type) || |
+ callStructure.signatureApplies(constructor.parameterStructure) || |
compiler.compilationFailed, |
message: "Call structure $callStructure does not apply to constructor " |
"$constructor.")); |