blob: 2c7d365d385c71f0196d3e84c4563a370ce18ef4 [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[e2] = e3 is the static
/// type of e3.
/// @description Checks that static type of e1[e2] = e3 is static type of e3.
/// @author ilya
class D {}
class C {
operator []=(index, value) {}
}
main() {
C c = new C();
D d = (c[100] = new D());
}