Index: pkg/analyzer/lib/src/dart/element/element.dart |
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart |
index 735219389d8249403764c1f1a87bb4058ffd5423..820a132f4dd188683e1ae12fb7864224d3b777c8 100644 |
--- a/pkg/analyzer/lib/src/dart/element/element.dart |
+++ b/pkg/analyzer/lib/src/dart/element/element.dart |
@@ -8414,7 +8414,7 @@ abstract class VariableElementImpl extends ElementImpl |
* constant expression to the given [result]. |
*/ |
void set evaluationResult(EvaluationResultImpl result) { |
- throw new IllegalStateException( |
+ throw new StateError( |
"Invalid attempt to set a compile-time constant result"); |
} |