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

Unified Diff: runtime/vm/class_finalizer.cc

Issue 10832401: Gentle start with removing explicit interfaces (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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: runtime/vm/class_finalizer.cc
===================================================================
--- runtime/vm/class_finalizer.cc (revision 11079)
+++ runtime/vm/class_finalizer.cc (working copy)
@@ -1344,11 +1344,11 @@
// represent a function type, therefore implementing the Function interface.
if (!cls_belongs_to_core_lib) {
if (interface.IsBoolInterface() ||
- interface.IsNumberInterface() ||
+ interface.IsNumber() ||
regis 2012/08/21 19:13:22 Besides type testers, we also have class testers a
hausner 2012/08/23 00:25:06 Agree. Changing to IsFunctionType() and IsNumberTy
interface.IsIntInterface() ||
interface.IsDoubleInterface() ||
interface.IsStringInterface() ||
- (interface.IsFunctionInterface() && !cls.IsSignatureClass()) ||
+ (interface.IsFunction() && !cls.IsSignatureClass()) ||
interface.IsDynamicType()) {
const Script& script = Script::Handle(cls.script());
ReportError(script, cls.token_pos(),

Powered by Google App Engine
This is Rietveld 408576698