Files
sdk/pkg/dartfix/example/example.dart
T
danrubel 93306f5ec0 Add dartfix integration test
... and update changelog and tweak SDK constraints

Change-Id: Ifb3e733b84c3aecad0ff8fe805f77ef497248f3b
Reviewed-on: https://dart-review.googlesource.com/c/86600
Commit-Queue: Dan Rubel <danrubel@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-12-17 04:37:07 +00:00

19 lines
564 B
Dart

// This file contains code that is modified by running dartfix.
// After running dartfix, the content of this file matches example-fixed.dart.
// Dart will automatically convert int literals to doubles.
// Running dartfix converts this double literal to an int.
const double myDouble = 4.0;
// This class is used as a mixin but does not use the new mixin syntax.
// Running dartfix converts this class to use the new syntax.
class MyMixin {
final someValue = myDouble;
}
class MyClass with MyMixin {}
main() {
print('myDouble = ${MyClass().someValue}');
}