blob: 36eddf1e045c4f8bd51c6ac1c8f16b4a79131244 [file] [log] [blame]
// Copyright (c) 2013, 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.
/**
* @assertion bool flagZ
* Extracted [z] value. Returns false for 0, true for any other value.
* @description Checks that [flagZ] is read-only and can't be set.
* @author msyabro
*/
import "dart:typed_data";
import "../../../Utils/expect.dart";
main() {
dynamic obj = new Int32x4.bool(false, false, false, false);
Expect.throws(() { obj.flagZ = true; }, (e) => e is NoSuchMethodError);
}