dart-sdk/tests/ffi/regress_51913_test.dart
Daco Harkes 2d61150905 [cfe/ffi] Fix missing type argument on @Native
TEST=tests/ffi/regress_51913_test.dart

Bug: https://github.com/dart-lang/sdk/issues/51913
Change-Id: I79746f3b3852f34d7e31b32260ce5abcb2d6801a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/293602
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2023-04-05 16:24:30 +00:00

13 lines
420 B
Dart

// 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.
import 'dart:ffi';
// Should have been `@Native<Void Function()>` or something.
@Native() //# 1: compile-time error
external void foo(); //# 1: compile-time error
void main() {
print('something');
}