Files
sdk/pkg/front_end/testcases/incremental/flutter_issue_66122.yaml
T
Kilian Schulte 9e8fdef17c Add annotation-based creation location tracking
Closes https://github.com/dart-lang/sdk/pull/63011

GitOrigin-RevId: 926534c2f5d3cd1e9629cf25f6b028ab34c00e64
Change-Id: I88460a060faabeae8f611e88f23b2eb5fc99f21a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/491702
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2026-04-28 03:06:03 -07:00

66 lines
2.0 KiB
YAML

# Copyright (c) 2020, 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.
# Reproduce weirdness with abstract member-signatures and forwarding stubs from
# https://github.com/flutter/flutter/issues/66122
type: newworld
target: dartdevc
trackCreationLocations: true
worlds:
- entry: main.dart
skipClassHierarchyTest: true
sources:
main.dart: |
import 'package:flutter/framework.dart';
import 'after_layout.dart';
class _HotReloadIssueState extends State<HotReloadIssue>
with AfterLayoutMixin<HotReloadIssue> {
Widget build(BuildContext context) => throw '';
void afterFirstLayout(BuildContext context) {}
}
class HotReloadIssue extends StatefulWidget {}
after_layout.dart: |
import 'package:flutter/framework.dart';
mixin AfterLayoutMixin<T extends StatefulWidget> on State<T> {}
flutter/lib/framework.dart: |
mixin Diagnosticable {
String toString() {
return "foo";
}
}
abstract class State<T extends StatefulWidget> with Diagnosticable {
T? _widget;
}
class State2 extends State {}
class StatefulWidget {}
class Widget {}
class BuildContext {}
final State<StatefulWidget> state = new State2();
void foo() {
state._widget = null;
}
.dart_tool/package_config.json: |
{
"configVersion": 2,
"packages": [
{
"name": "flutter",
"rootUri": "../flutter",
"packageUri": "lib/"
}
]
}
expectedLibraryCount: 3
- entry: main.dart
skipClassHierarchyTest: true
worldType: updated
invalidate:
- main.dart
expectInitializeFromDill: false
expectedLibraryCount: 3
advancedInvalidation: bodiesOnly