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

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

Issue 19693011: Fix some bugs regarding native fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 // Regression test for a bug that was caused by uninstantiated classes being
6 // added to emitted classes by runtime-type system.
7 // See my explanation in https://codereview.chromium.org/14018036/.
8 // -- ahe
9
10 class A native "A" {
11 // Just making sure the field name is unique.
12 var rti_only_native_test_field;
13 }
14
15 typedef fisk();
16
17 main() {
18 void foo(A x) {}
19 var map = { 'a': 0, 'b': main };
20 try {
21 map.values.forEach((x) => x.rti_only_native_test_field);
22 } finally {
23 print(main is fisk);
24 return;
25 }
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698