blob: 459f32a0c3685c8f6df68bf18d81353592bd4fa7 [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
/// Logical AND && Left 6
/// @description Test that '&&' logical AND operator has left associativity.
/// @author sgrekhov@unipro.ru
import "../../../Utils/expect.dart";
String log = "";
class C {
bool m(String val) {
log += val;
return true;
}
}
main() {
C c = new C();
c.m("c1") && c.m("c2") && c.m("c3") && c.m("c4");
Expect.equals("c1c2c3c4", log);
}