blob: c2a7a67142ba656a0e08a1698c2bd27bb70f0693 [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 {
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() {}