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

Side by Side Diff: tests/compiler/dart2js_native/issue9182_test.dart

Issue 13973017: Revert "Revert "Allow multiple tags in native clause."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 8 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 // Regression test for Issue 9182. The generative constructor body function 5 // Regression test for Issue 9182. The generative constructor body function
6 // should not have the interceptor calling convention. 6 // should not have the interceptor calling convention.
7 7
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 9
10 class Foo native "*A" { 10 class Foo native "A" {
11 factory Foo() => makeA(); 11 factory Foo() => makeA();
12 // Ensure the instance method 'Bar' uses interceptor convention. 12 // Ensure the instance method 'Bar' uses interceptor convention.
13 Bar() => 123; 13 Bar() => 123;
14 } 14 }
15 15
16 class Bar { 16 class Bar {
17 var _x, _y; 17 var _x, _y;
18 // Generative constructor with body, having the same name as interceptor 18 // Generative constructor with body, having the same name as interceptor
19 // convention instance member. 19 // convention instance member.
20 Bar(x, y) { 20 Bar(x, y) {
(...skipping 14 matching lines...) Expand all
35 35
36 var things = [new Foo(), new Bar(30, 40)]; 36 var things = [new Foo(), new Bar(30, 40)];
37 var foo = things[0]; 37 var foo = things[0];
38 var bar = things[1]; 38 var bar = things[1];
39 39
40 Expect.equals(123, foo.Bar()); // Ensure that Foo.Bar is used. 40 Expect.equals(123, foo.Bar()); // Ensure that Foo.Bar is used.
41 41
42 Expect.equals(30, bar._x); 42 Expect.equals(30, bar._x);
43 Expect.equals(40, bar._y); 43 Expect.equals(40, bar._y);
44 } 44 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_native/is_check_test.dart ('k') | tests/compiler/dart2js_native/native_call_arity1_frog_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698