blob: 3d69adf5e0e43da2426c804a9603eba1ea357e9a [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.
/**
* @assertion Test for type aliases for built-in types
* @description Checks logical operations
* @author sgrekhov@unipro.ru
*/
// SharedOptions=--enable-experiment=nonfunction-type-aliases
import '../../../Utils/expect.dart';
typedef BoolAlias = bool;
main() {
BoolAlias bat = true;
BoolAlias baf = false;
Expect.isFalse(bat && baf);
Expect.isFalse(baf && bat);
Expect.isTrue(true && bat);
Expect.isFalse(bat && baf);
Expect.isTrue(bat || baf);
Expect.isTrue(baf || bat);
Expect.isTrue(baf || true);
}