Files
sdk/tests/web/wasm/super_dependency_helper1.dart
Nate Biggs 1fc8f6e988 [dart2wasm] Fix missing cases in deferred loading fine grained dependency calculation.
- The dependencies of a class should also include the initializers for its fields. These are used to initialize the class object. And they are not represented in the constructor Initializers list.
- Super gets/sets/invocations should all visit their children as well. These aren't leaf nodes.

Change-Id: I552bc87cf1bbc35b11b0dd7bcbd167b2fa5bcbe7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/481680
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2026-02-20 11:53:17 -08:00

24 lines
499 B
Dart

// Copyright (c) 2026, 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 Base {
void invoke(String x) {
print(x);
}
set setter(String s) => s;
}
class Eager extends Base {
String get a => 'a';
String get b => 'b';
@override
void invoke(String x) {
super.invoke(x + a);
}
set setter(String x) => super.setter = x + b;
}