mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
d2a4358bef
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>
26 lines
538 B
Dart
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();
|
|
}
|