blob: 7629f32426107b13045dd32c63fcbb0fff713fd8 [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 final bool flagY
* Extracted [y] value. Returns false for 0, true for any other value.
* @description Checks that [flagY] is final and can't be set.
* @author msyabro
*/
import "dart:typed_data";
import "../../../Utils/expect.dart";
main() {
var obj = new Int32x4.bool(false, false, false, false);
try {
obj.flagY = true;
Expect.fail("[flagY] should be final");
} on NoSuchMethodError catch(ok) {}
}