Files
sdk/pkg/dynamic_modules/test/data/generic_static_tearoff/main.dart
T
Nate Biggs 769853512d [dart2wasm] Fix static tear-off vtable instantiation.
When dynamic modules are enabled vtables should only include the dynamic call entry point.

Change-Id: Ifdf935a00039fe478c290d4bef585659cfdb9661
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/427860
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2025-05-13 08:39:41 -07:00

13 lines
433 B
Dart

// 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.
import '../../common/testing.dart' as helper;
import 'package:expect/expect.dart';
void main() async {
final f = await helper.load('entry1.dart') as int Function(int);
Expect.equals(3, f(3));
helper.done();
}