blob: 68a05921884004f4648af1bfb0d1c925e64323c0 [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 file.
main.dart.patch: |
// Test that adding an override conflict results in a compile-time error.
class A {
var m;
class B extends A {
<<<< {"messages":["42"]}
==== {"messages":["42"],"hasCompileTimeError":1}
m() {}
var c;
main() {
// This print statement is added to ensure minimal incremental change in the
// second version of the program: The compile-time error introduced causes
// [compileError] to be added which in turn adds static fields because of its
// print statement.
if (c == null) {
c = 0;
} else {
new B().m();