mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
![Alexander Thomas](/assets/img/avatar_default.png)
https://github.com/dart-lang/co19/issues/1090 TEST=Standard tryjobs, all changes are in test code only. Change-Id: Ie73174447ab165827335652cf035f85b7510ab55 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/201564 Commit-Queue: Alexander Thomas <athom@google.com> Reviewed-by: Erik Ernst <eernst@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com>
22 lines
546 B
Dart
22 lines
546 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.
|
|
|
|
// @dart = 2.9
|
|
|
|
import "dart:ffi";
|
|
|
|
class MyStruct extends Struct {
|
|
Pointer<Int8> notEmpty;
|
|
|
|
@Array.multi([]) //# 01: compile-time error
|
|
Array<Int16> a0; //# 01: compile-time error
|
|
|
|
@Array.multi([1]) //# 02: compile-time error
|
|
Array<Array<Int16>> a1; //# 02: compile-time error
|
|
}
|
|
|
|
void main() {
|
|
MyStruct ms = null;
|
|
}
|