| Index: pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| diff --git a/pkg/analyzer/lib/src/dart/constant/evaluation.dart b/pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| index 9572778d8d7ce6ca98fa058eb9ca9a7d900ab080..58b3e7b159dd05a6d020ed48aca542b8e88134f3 100644
|
| --- a/pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| +++ b/pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| @@ -740,6 +740,9 @@ class ConstantEvaluationEngine {
|
| // it redirects to.
|
| ConstructorElement constructor = initializer.staticElement;
|
| if (constructor != null && constructor.isConst) {
|
| + // Instantiate the constructor with the in-scope type arguments.
|
| + constructor = ConstructorMember.from(constructor, definingClass);
|
| +
|
| DartObjectImpl result = evaluateConstructorCall(
|
| node,
|
| initializer.argumentList.arguments,
|
|
|