blob: 05022724a14621b9ebaee2d7248c260f957340d3 [file] [log] [blame]
// 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.
enum E1 { a, b }
enum E2 { a, b }
enum E3 { a, b }
var v = [E1.a, E2.b];
main() {
// Test that v is `List<Enum>`, so these assignments are OK.
v[0] = E3.a;
List<Enum> w = v;
}