mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:21:18 +00:00
5c55e61647
of type parameters (issue 18630). Make sure to clone the parameter type array as well. Add regression tests. R=iposva@google.com Review URL: https://codereview.chromium.org//693693003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41474 260f80e4-7a28-3924-810f-c04153c831b5
27 lines
536 B
Dart
27 lines
536 B
Dart
// Copyright (c) 2014, 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 MixinA<T> {
|
|
T intField;
|
|
}
|
|
|
|
class MixinB<S> {
|
|
S stringField;
|
|
}
|
|
|
|
class MixinC<U, V> {
|
|
U listField;
|
|
V mapField;
|
|
}
|
|
|
|
class C extends Object with MixinA<int>, MixinB<String>, MixinC<List, Map> {}
|
|
|
|
void main() {
|
|
var c = new C();
|
|
c.intField = 0;
|
|
c.stringField = '';
|
|
c.listField = [];
|
|
c.mapField = {};
|
|
}
|