blob: 6678bcd86e34005f792e7cfc034382719621a405 [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.
* @static-clean
* @author ilya
*/
class D {}
class C {
operator []=(index, value) {}
}
main() {
C c = new C();
D d = (c[100] = new D());
}