blob: 40efb54ed4b4a36e21f3245bf55f97b47a921349 [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 The static type of an equality expression is bool.
* @description Checks that static type of an equality expression is not int.
* @static-warning
* @author kaigorodov
* @reviewer iefremov
*/
import "../../Utils/dynamic_check.dart";
main() {
int b;
checkTypeError(() {
b = (1 == 1); /// static type warning
});
}