blob: af2cb16780e1b0a68e9d7e97b950071eb9270c5e [file] [log] [blame]
// Copyright (c) 2011, 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 Invoking the getter runtimeType on a boolean literal returns the
/// Type object that is the value of the expression bool.
/// @description Checks that invoking the getter runtimeType on a boolean
/// literal returns the Type object that is the value of the expression bool.
/// @author ngl@unipro.ru
import '../../../Utils/expect.dart';
main() {
Expect.isTrue(true.runtimeType is Type);
Expect.runtimeIsType<Type>(true.runtimeType);
Expect.isTrue(true.runtimeType == bool);
Expect.isTrue(false.runtimeType is Type);
Expect.runtimeIsType<Type>(false.runtimeType);
Expect.isTrue(false.runtimeType == bool);
}