blob: 6c7db02618dd9a3555653dac7d7ddd9a7b3f12dd [file]
// 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.
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() {}