blob: b67fca7ce15ffa8d00c45efb827a01c4c3679fac [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.
/// @assertion The static type of the expression e1.v = e2 is the static type
/// of e2
/// @description Checks that static type of the expression e1.v = e2 is the
/// static type of e2. Test the case when e1 is a constant type literal
/// @compile-error
/// @author ilya
class D {}
class C {
static D? v;
}
main() {
C y = (C.v = new D());
}