Files
sdk/pkg/front_end/testcases/general/arithmetic.dart
T
Johnni Winther c049178dc4 [cfe] Remove language version from testcases/general (Part 1 of ?)
This in preparation for enabling all bleeding edge experimental
features in testcases/general to get early feedback on how new features
affect existing code.

Change-Id: I50d7f92b547dfb3a1482d485b5dad40dc8bc6985
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/234720
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-03-02 11:51:20 +00:00

20 lines
418 B
Dart

// Copyright (c) 2016, 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.
int foo(int x, int y) {
var z = x + y;
return z << 4;
}
void loop(List xs) {
int _ = xs.length;
for (int i = 0; i < xs.length; i++) {}
}
main() {
foo(4, 5);
foo(6, 7);
loop(['dfg']);
}