0aea9cb1d0
This normalizes the handling of record access to use the ObjectAccessTarget interfaces. The extension handling of getter/setter shadowing is now computed in terms of ObjectAccessTargets which now handles shadowing for functions and records. Closes #50157 Closes #50513 Change-Id: Ib35ca9f7459016688eecc6d05019b0384f37ab76 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/271084 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
17 lines
383 B
Dart
17 lines
383 B
Dart
// Copyright (c) 2022, 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.
|
|
|
|
class Class {
|
|
int get property => 42;
|
|
void set property(int value) {}
|
|
}
|
|
|
|
extension on Class? {
|
|
int get property => 42;
|
|
}
|
|
|
|
void test(Class? c) {
|
|
c.property;
|
|
}
|