dart-sdk/tests/language_2/bug34235_test.dart
Paul Berry d2a4358bef Add a language_2 test reproducing #34235.
Change-Id: Icaf6329729a17b20a591ae6e9b8bf7c0d2e21265
Reviewed-on: https://dart-review.googlesource.com/71368
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Daniel Hillerström <hillerstrom@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-08-24 18:27:09 +00:00

26 lines
538 B
Dart

// Copyright (c) 2018, 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.
class Base {
void foo() {}
}
class M1 {
void foo(
// Prevent formatter from joining the line below to the one above
{x} //# 01: compile-time error
) {}
}
class BaseWithM1 = Base with M1;
class M2 {
void foo() {}
}
class Derived extends BaseWithM1 with M2 {}
main() {
new Derived().foo();
}