blob: cfd211dcb61ba2e0a82f984cb54e712fee0729f0 [file] [log] [blame]
// Copyright (c) 2025, 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.
class H1 {
final void Function(int) fun;
const H1(this.fun);
}
void globalH1Foo<T>(T a) => print('globalH1Bar<$T>($a)');
const constH1 = H1(globalH1Foo);
@pragma('wasm:never-inline')
void modH1UseH1() {
print(constH1);
constH1.fun(1);
}