Index: pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart |
index 6a8e9e1a2a1e003efe092bff44b5b1e78b72d489..e7c14771223e7888abebdbc5479e212dde8e962d 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart |
@@ -119,7 +119,8 @@ class KernelAssertStatement extends AssertStatement implements KernelStatement { |
@override |
void _inferStatement(KernelTypeInferrer inferrer) { |
inferrer.listener.assertStatementEnter(this); |
- inferrer.inferExpression(condition, null, false); |
+ inferrer.inferExpression( |
+ condition, inferrer.coreTypes.boolClass.rawType, false); |
if (message != null) { |
inferrer.inferExpression(message, null, false); |
} |