Files
sdk/tests/language_2/generic_list_checked_test.dart
T
Lasse R.H. Nielsen d2aae0a45f Fix tests in language_2 to test strong mode semantics.
Change-Id: I74dced985475fe48c900bfd6b6cece85f64b54cd
Reviewed-on: https://dart-review.googlesource.com/36581
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2018-01-25 10:57:42 +00:00

12 lines
335 B
Dart

// Copyright (c) 2013, 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';
main() {
Expect.throws(() {
List<int> t = (<String>[] as Object);
});
}