blob: e14b4f2a150e21325dc6e2659af57af40eb45290 [file] [log] [blame]
// Copyright (c) 2017, 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.
// @dart=2.9
/*@testedFeatures=checks*/
library test;
class C {
void set x(dynamic value) {}
dynamic y;
void test() {
// Set via this
x = null;
this.x = null;
y = null;
this.y = null;
}
}
void test(C c, dynamic d) {
// Set via interface
c.x = null;
c.y = null;
// Dynamic set
d.x = null;
}
main() {}