blob: 435d2f1131f3b5a0b12da624f31764310971605a [file] [log] [blame]
// Copyright (c) 2021, 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.
//
// dart2jsOptions=--null-assertions
@pragma('dart2js:noInline')
confuse(x) => x;
class MyObject {
// Operator == _not_ overridden.
}
class MyObject2 {
@override
bool operator ==(other) => other is MyObject2;
}
void main() {
confuse(MyObject2());
print(confuse(MyObject()) == confuse(null));
}