blob: 556e041f48adb787cf08dfeac0cd372cad68f3e6 [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.
// @dart = 2.9
/// @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 Unary postfix operators (precedence 16). Test that '!e' has
/// priority lower than '.'
/// @author sgrekhov@unipro.ru
import "../../../Utils/expect.dart";
class C {
bool m = true;
}
main() {
C c = new C();
Expect.isFalse(!c.m);
}