blob: dabdabae7ac8f29ec3f9357769b7de4c5f08adb9 [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.
*/
/**
* @assertion It's not an error to read definitely assigned local variable in
* the form var x;
*
* @description Checks that it's not an error to read definitely assigned local
* variable in the form var x;. Test indirect read via triple shift compound
* assignment
*
* @author sgrekhov@unipro.ru
*/
// SharedOptions=--enable-experiment=triple-shift
// Requirements=nnbd-strong
import '../../../Utils/expect.dart';
main() {
var x;
x = 42;
x >>>= 2;
Expect.equals(42 >>> 2, x);
}