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

Unified Diff: test/browser/runtime_tests.js

Issue 1144303003: Use signature inheritance when method types are unchanged (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Remove empty signatures Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/browser/runtime_tests.js
diff --git a/test/browser/runtime_tests.js b/test/browser/runtime_tests.js
index b9cd0abb1ec4d475b60889235875c8a5c5b5a7da..e1fac77abd708f7c545cf658522164370a379842 100644
--- a/test/browser/runtime_tests.js
+++ b/test/browser/runtime_tests.js
@@ -619,6 +619,17 @@ suite('instanceOf', () => {
var m = dart.bind(obj, 'm');
checkType(m, dart.functionType(core.Object, [core.int]));
checkType(m, dart.functionType(core.int, [core.int]), false);
+
+ // Test inherited signatures
+ class P extends O {
+ P() {};
+ m(x) {return x;};
+ };
+ dart.setSignature(P, {});
+ var obj = new P();
+ var m = dart.bind(obj, 'm');
+ checkType(m, dart.functionType(core.Object, [core.int]));
+ checkType(m, dart.functionType(core.int, [core.int]), false);
});
test('Object members', () => {
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698