You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example of a program dartc rejects, but that should be allowed:
===
final x = 5.5;
final y = 2.2;
final z = x ~/ y;
main() => print(z);
===
file:bug.dart:3: Expected constant expression of type int, got double
2: final y = 2.2;
3: final z = x ~/ y;
Compilation failed with 1 problem.
The text was updated successfully, but these errors were encountered:
Example of a program dartc rejects, but that should be allowed:
===
final x = 5.5;
final y = 2.2;
final z = x ~/ y;
main() => print(z);
===
file:bug.dart:3: Expected constant expression of type int, got double
2: final y = 2.2;
3: final z = x ~/ y;
Compilation failed with 1 problem.
The text was updated successfully, but these errors were encountered: