Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: tests/language/mixin_super_constructor_multiple_test.dart

Issue 14168003: Implement implicit constructors in mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix an assert. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Make sure the engine does not infer the wrong type for [:A.foo:].
6
7 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
8 6
9 class A { 7 class S {
10 foo() => this; 8 int i;
9 S.foo() : i = 1742;
11 } 10 }
12 11
13 class B extends A { 12 class M1 { }
13
14 class M2 { }
15
16 class C extends S with M1, M2 {
17 C.foo() : super.foo();
14 } 18 }
15 19
16 main() { 20 main() {
17 Expect.isTrue(new B().foo() is B); 21 Expect.equals(1742, new C.foo().i);
18 } 22 }
OLDNEW
« no previous file with comments | « tests/language/mixin_super_constructor_default_test.dart ('k') | tests/language/mixin_super_constructor_named_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698