blob: 81ff2c2cd35b6711eb207d1c518618f3b6490239 [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 {
dynamic get x => null;
dynamic y;
void test() {
// Get via this
var v1 = x;
var v2 = this.x;
var v3 = y;
var v4 = this.y;
}
}
void test(C c, dynamic d) {
// Get via interface
var v1 = c.x;
var v2 = c.y;
// Dynamic get
var v3 = d.x;
}
main() {}