Files
sdk/tests/language/nnbd/const/regress43281_test.dart
T
Nicholas Shahan a7fbb3ffe3 Add regression test for issue #43281
Change-Id: Iae1c81f60ccc36708601d73d426f4fbc6f119084
Issue: https://github.com/dart-lang/sdk/issues/43281
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161627
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-09-03 00:38:52 +00:00

14 lines
434 B
Dart

// Copyright (c) 2020, 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.
import 'package:expect/expect.dart';
// Regression test for https://github.com/dart-lang/sdk/issues/43281.
void main() {
const s = {1, 2, 3, null};
Expect.equals(4, s.length);
Expect.isTrue(s is Set<int?>);
}