| Index: tests/language/mixin_type_parameters_simple_test.dart
|
| ===================================================================
|
| --- tests/language/mixin_type_parameters_simple_test.dart (revision 0)
|
| +++ tests/language/mixin_type_parameters_simple_test.dart (revision 0)
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2013, 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.
|
| +
|
| +import "package:expect/expect.dart";
|
| +
|
| +class S {}
|
| +
|
| +class M1<X> {
|
| + m1() => X;
|
| +}
|
| +
|
| +class M2<Y> {
|
| + m2() => Y;
|
| +}
|
| +
|
| +class A<T> extends S with M1<T> , M2<T> { }
|
| +
|
| +main() {
|
| + var a = new A<int>();
|
| + Expect.equals("int", a.m1().toString());
|
| + Expect.equals("int", a.m2().toString());
|
| + a = new A<String>();
|
| + Expect.equals("String", a.m1().toString());
|
| + Expect.equals("String", a.m2().toString());
|
| +}
|
|
|