blob: f61edade9c4f7e7e828f557c0c331a677d7d41fa [file] [log] [blame]
// Copyright (c) 2020, 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:typed_data';
import 'package:expect/expect.dart';
final Float32List l = int.parse('1') == 1
? Float32List(2)
: Float32List.view(Uint32List(2).buffer);
main() {
l[int.parse('1') == 1 ? 0 : 1] = 1.2;
Expect.approxEquals(l[0], 1.2);
}