mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:49:47 +00:00
1accf661e2
In weak mode A<dynamic> is a subtype of A<Object>. Break out this expectation into separate files for weak and strong modes. Change-Id: I8d7b10d836eeb4a3221fe51ee7717aa544347b05 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144682 Reviewed-by: Leaf Petersen <leafp@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>
18 lines
515 B
Dart
18 lines
515 B
Dart
// 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-strong
|
|
|
|
// 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));
|
|
Expect.isFalse(a2 is A<Object>);
|
|
}
|