// Copyright (c) 2018, 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. // @dart = 2.7 T method1a() => null; T method1b() => null; class Class { T method2a() => null; T method2b() => null; } main() { method1a(); T Function() f1 = method1b; Class c = new Class(); c.method2a(); T Function() f2 = c.method2b; print(f1.runtimeType == f2.runtimeType); }