dart-sdk/tests/language/mixin_type_parameter5_test.dart
regis@google.com 5c55e61647 Resubmit fix for Function::Clone() and Field::Clone() to adjust the class owner
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
2014-11-03 23:16:33 +00:00

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 = {};
}