blob: 526fb976b74265dc67b844f485df3e57af9acc1e [file] [log] [blame]
// Copyright (c) 2022, 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.
var c = new C();
var x = 42;
var y = 42;
class C {
operator []=(x, y, ) {}
}
main() {}
class Bad {
method() {
c[x,] = y;
}
}