blob: b623a7898dba4a650af688b0b120d6c7d8751516 [file] [log] [blame]
// Copyright (c) 2011, 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.
// @dart = 2.9
/// @assertion The static type a list literal of the form const [e1...en] or
/// the form [e1...en] is List<dynamic>.
/// @description Checks that static type of list literal with omitted type
/// argument is indeed List<dynamic> by assigning it to declared variable of
/// type List<dynamic>. No static warnings expected.
/// @author ilya
main() {
List x = [0, true, String];
List y = const [0, true, String];
}