mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:20:31 +00:00
00ea62f713
Closes: https://github.com/dart-lang/sdk/issues/47673 TEST=tests/ffi(_2)/regress_47673(_2)_test.dart Change-Id: I8fdafc5378797ed071250b0caed1ab944873a218 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220760 Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Clement Skau <cskau@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
23 lines
617 B
Dart
23 lines
617 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.
|
|
//
|
|
// SharedObjects=ffi_test_functions
|
|
|
|
// @dart=2.9
|
|
|
|
import 'dart:ffi';
|
|
|
|
typedef T = Int64; //# 1: compile-time error
|
|
|
|
class A extends Struct {
|
|
@Array.multi([16])
|
|
Array<Int8> a;
|
|
|
|
// In language version 2.12 we do not support non-function typedefs.
|
|
// This should not crash the FFI transform.
|
|
@Array.multi([16]) //# 1: compile-time error
|
|
Array<T> b; //# 1: compile-time error
|
|
}
|
|
|
|
main() {}
|