blob: a08ef1a2902f3fd7d7fc9e25e8159f0dee2abffd [file] [log] [blame]
// Copyright (c) 2018, 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.7
import 'dart:typed_data';
// TODO(johnniwinther): Fix inference for spec:nnbd-off mode. List elements should not
// be [empty].
/*member: myList:Container([null|exact=NativeFloat32List], element: [subclass=JSNumber], length: 42)*/
var myList = new Float32List(42);
/*member: myOtherList:Container([null|exact=NativeUint8List], element: [exact=JSUInt31], length: 32)*/
var myOtherList = new Uint8List(32);
/*member: main:[subclass=JSNumber]*/
main() {
// ignore: unused_local_variable
var a = new Float32List(9);
return myList
/*Container([null|exact=NativeFloat32List], element: [subclass=JSNumber], length: 42)*/
/*invoke: [subclass=JSNumber]*/
/*Container([null|exact=NativeUint8List], element: [exact=JSUInt31], length: 32)*/