blob: 9ef31525be66562b96d45ca1441bbfc49bb9ee6d [file] [log] [blame]
// Copyright (c) 2016, 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.
/// @assertion
/// Description Operator Associativity Precedence
/// Unary prefix -e, !e, ˜e, ++e, –e None 15
/// @description Test that '-e' unary prefix operator has precedence (15).
/// Compare with Multiplicative operators (precedence 14). Test that '-e' has
/// priority higher than '*'
/// @author sgrekhov@unipro.ru
import "../../../Utils/expect.dart";
main() {
int e = 1;
Expect.equals(2 * (-e), 2 * -e);
}