blob: 609310487e52e6dca23c8746fe12f7821457121c [file] [log] [blame]
// Copyright (c) 2019, 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.
// This file contains code that is modified by running dartfix.
// After running dartfix, this content matches a file in the "fixed" directory.
// Dart will automatically convert int literals to doubles.
// Running dartfix converts this double literal to an int
// if --double-to-int is specified on the command line.
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 {}
void main(List<String> args) {
if (args.length == 0) {
print('myDouble = ${MyClass().someValue}');
}
}