blob: f47e3caed1b9fbd74b6485bca2fb4870966f9456 [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 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)*/
[0]
/*invoke: [subclass=JSNumber]*/
+
myOtherList
/*Container([null|exact=NativeUint8List], element: [exact=JSUInt31], length: 32)*/
[0];
}