blob: 910904fdcc5358ee8f02a1654071811a3f4e950e [file] [log] [blame]
// Copyright (c) 2017, 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.
unchangedFunction() => "unchanged";
var unchangedField = "unchanged".toString();
function() => "new value";
var uninitializedField = "new initializer".toString();
var fieldLiteralInitializer = "new initializer";
var initializedField = "new initializer".toString();
var neverReferencedField = "new initializer".toString();
// Not initially finalized.
class C {
function() => "new value";
}
class S {}
class M {
newFunction() => "new value";
}
class MA1 extends S with M {
newFunction2() => "new value";
}
class MA2 = S with M;
class NewClass {
function() => "new value";
}
typedef bool NewTypedef(Object obj);
main2() {
print(function());
print(uninitializedField);
print(initializedField);
print(new C().function());
print(new NewClass().function());
print(new MA1().newFunction());
print(new MA1().newFunction2());
}