blob: c6dc1a6434506afb6dcea46f732fee5ccb9ef904 [file]
# 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.
# Standing in the initializer we can access the super initializing formal.
sources: |
void main() {
new Foo(1, 42);
}
class Foo extends Bar {
int j;
Foo(int super.i, int x) : j = i * x {
print(i);
}
}
class Bar {
final num i;
Bar(this.i);
}
# We pretend like the VM sends over "i" too. It currently doesn't though.
definitions: ["i", "x"]
# We pretend to VM doesn't send over information so we can see a difference in
# the output when we find the actual type (i.e. when we find it to be in scope).
definition_types: ["null", "null"]
type_definitions: []
type_bounds: []
type_defaults: []
method: "Foo"
position: "#Foo"
static: false
offset: 103 # on the "*" in the initializer.
scriptUri: main.dart
expression: |
i.isEven