blob: 9f6d2ca3755fa225044c890a997490b63e1caf95 [file] [edit]
// 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.
import 'dart:developer';
import 'common/test_helper.dart';
abstract interface class SharedTypeStructure {}
extension type SharedTypeSchemaView<TypeStructure extends SharedTypeStructure>(
TypeStructure _typeStructure) implements Object {}
class C extends SharedTypeStructure {
@override
String toString() => 'C!';
}
class ClassWithTypeAnalyzer<TypeStructure extends SharedTypeStructure> {
SharedTypeSchemaView<TypeStructure> dispatchExpression(
SharedTypeSchemaView<TypeStructure> schema,
) {
return schema;
}
void analyzeExpression(SharedTypeSchemaView<TypeStructure> schema) {
debugger(); // LINE_A
}
}
void code() {
final classWithTypeAnalyzer = ClassWithTypeAnalyzer<C>();
classWithTypeAnalyzer.analyzeExpression(SharedTypeSchemaView(C()));
}
Future<void> main([List<String> args = const <String>[]]) {
return startServiceTest(testeeConcurrent: code);
}