blob: 2072ab6b9632ff7b9584b13d99b96719188fa74c [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.
/*@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() {}