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

Unified Diff: test/kernel/regression/native_is_illegal.dart

Issue 2201803002: Mark native methods as external. (Closed) Base URL: git@github.com:dart-lang/rasta.git@dill
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: test/kernel/regression/native_is_illegal.dart
diff --git a/test/kernel/regression/abstract_constructor.dart b/test/kernel/regression/native_is_illegal.dart
similarity index 57%
copy from test/kernel/regression/abstract_constructor.dart
copy to test/kernel/regression/native_is_illegal.dart
index 8caa4edb851dff34558b9bbd83d76f4a68bbc54d..84b8275ca93199edcf828de6704b5a6cc0749b80 100644
--- a/test/kernel/regression/abstract_constructor.dart
+++ b/test/kernel/regression/native_is_illegal.dart
@@ -2,8 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
-abstract class C {}
+foo() native "foo";
-main() {
- new C();
+class Bar {
+ Bar get x native "Bar_get_x";
+ set x(Bar value) native "Bar_set_x";
+ f() native "Bar_f";
+ factory Bar() native "Bar_constructor";
}
« no previous file with comments | « test/kernel/regression/native/native_is_external.dart.txt ('k') | test/kernel/regression/native_is_illegal.dart.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698