blob: 402d07c9a723ccc9a07629b3677f7608939e5b91 [file] [log] [blame]
// Copyright (c) 2021, 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 for
// Verifies that compiler doesn't crash if Typedef is only used from
// function type of a call.
import 'package:expect/expect.dart';
class Message {}
typedef void FooHandler(Message message);
class A {
final FooHandler handler;
A a;
main() {