blob: 5695e66ffb03f4882f398bc1947c98a23899690c [file] [log] [blame]
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
void assertStatement(Object x) {
assert((x is int ? /*int*/ x : throw 'foo') == 0);
// TODO(paulberry): should not be promoted because the assertion won't execute
// in release mode. See https://github.com/dart-lang/sdk/issues/38761.
/*int*/ x;
}