blob: 7d6e3d94de83cb979ac861b1c8904f13449abef1 [file] [log] [blame]
// Copyright (c) 2019, 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 test program const map literals.
class ListLiteral2NegativeTest<T> {
test() {
// Type parameter is not allowed with const.
var m = const <T>[];
// ^
// [cfe] Type variables can't be used as constants.
main() {