Files
sdk/runtime/lib/bool_patch.dart
T
tball@google.com 67530c6aa1 Added bool.hashCode patch.
BUG: 7244
Review URL: https://codereview.chromium.org//11557002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16011 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-12 00:59:05 +00:00

15 lines
398 B
Dart

// Copyright (c) 2012, 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 core library.
patch class bool {
/* patch */ int get hashCode {
return this ? 1231 : 1237;
}
/* patch */ bool operator ==(other) => identical(this, other);
}