blob: 2a4d2f69a213f5c11474735e6d8d291e574cf0d1 [file] [log] [blame]
// Copyright (c) 2015, 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.
// Requirements=nnbd-weak
// Copied from constructor12_test.dart to break out a single expectation that
// is different in weak and strong modes.
import "package:expect/expect.dart";
import 'constructor12_lib.dart';
main() {
var a2 = confuse(new A(2));
// Only true in weak mode.
Expect.isTrue(a2 is A<Object>);
}