393fe44f8f
When building outlines, resolve unresolved types from the class header (including superclass, mixin, and interface types) before any methods from the body are parsed. This ensures that they types from the class header are not shadowed by names introduced in the body. Change-Id: Ie842b9ab23d9b44d91609f9e1bf79c052cfce2d4 Reviewed-on: https://dart-review.googlesource.com/c/81008 Commit-Queue: Kevin Millikin <kmillikin@google.com> Commit-Queue: Peter von der Ahé <ahe@google.com> Auto-Submit: Kevin Millikin <kmillikin@google.com> Reviewed-by: Peter von der Ahé <ahe@google.com>
14 lines
337 B
Dart
14 lines
337 B
Dart
// Copyright (c) 2018, 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.
|
|
|
|
// Regression test: superclass is not shadowed by class members.
|
|
|
|
class A extends B {
|
|
B() {}
|
|
}
|
|
|
|
class B {}
|
|
|
|
main() {}
|