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

Issue 11066099: Remove function types from intl, as they appear to break the vm (Closed)

Created:
8 years, 2 months ago by Alan Knight
Modified:
8 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove function types from intl, as they appear to break the vm Committed: https://code.google.com/p/dart/source/detail?r=13485

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M pkg/intl/lib/intl.dart View 2 chunks +2 lines, -2 lines 4 comments Download

Messages

Total messages: 6 (0 generated)
Alan Knight
TBR. The attempt to make more rigorous function types in Intl appears to break the ...
8 years, 2 months ago (2012-10-10 17:01:46 UTC) #1
Emily Fortuna
lgtm https://codereview.chromium.org/11066099/diff/1/pkg/intl/lib/intl.dart File pkg/intl/lib/intl.dart (left): https://codereview.chromium.org/11066099/diff/1/pkg/intl/lib/intl.dart#oldcode235 pkg/intl/lib/intl.dart:235: static dynamic withLocale(String locale, message_function()) { hmm bummer. ...
8 years, 2 months ago (2012-10-10 17:44:48 UTC) #2
Alan Knight
https://codereview.chromium.org/11066099/diff/1/pkg/intl/lib/intl.dart File pkg/intl/lib/intl.dart (left): https://codereview.chromium.org/11066099/diff/1/pkg/intl/lib/intl.dart#oldcode235 pkg/intl/lib/intl.dart:235: static dynamic withLocale(String locale, message_function()) { On 2012/10/10 17:44:48, ...
8 years, 2 months ago (2012-10-10 17:49:05 UTC) #3
Emily Fortuna
https://codereview.chromium.org/11066099/diff/1/pkg/intl/lib/intl.dart File pkg/intl/lib/intl.dart (left): https://codereview.chromium.org/11066099/diff/1/pkg/intl/lib/intl.dart#oldcode235 pkg/intl/lib/intl.dart:235: static dynamic withLocale(String locale, message_function()) { On 2012/10/10 17:49:05, ...
8 years, 2 months ago (2012-10-10 18:11:06 UTC) #4
Ivan Posva
https://codereview.chromium.org/11066099/diff/1/pkg/intl/lib/intl.dart File pkg/intl/lib/intl.dart (left): https://codereview.chromium.org/11066099/diff/1/pkg/intl/lib/intl.dart#oldcode235 pkg/intl/lib/intl.dart:235: static dynamic withLocale(String locale, message_function()) { On 2012/10/10 18:11:07, ...
8 years, 2 months ago (2012-10-10 19:01:55 UTC) #5
Alan Knight
8 years, 2 months ago (2012-10-10 19:29:26 UTC) #6
On 2012/10/10 19:01:55, Ivan Posva wrote:
> https://codereview.chromium.org/11066099/diff/1/pkg/intl/lib/intl.dart
> File pkg/intl/lib/intl.dart (left):
> 
>
https://codereview.chromium.org/11066099/diff/1/pkg/intl/lib/intl.dart#oldcod...
> pkg/intl/lib/intl.dart:235: static dynamic withLocale(String locale,
> message_function()) {
> On 2012/10/10 18:11:07, Emily Fortuna wrote:
> > On 2012/10/10 17:49:05, Alan Knight wrote:
> > > On 2012/10/10 17:44:48, Emily Fortuna wrote:
> > > > hmm bummer. So neither the VM nor dart2js recognize this syntax yet?
> > > Looks like the problem was probably the explicit use of dynamic. At least
> this
> > > didn't fix it, and removing dynamic did. Dart2js has problems with more
> > complex
> > > versions of this, but seems like it's probably ok with this one. So this
> could
> > > be put back, but since it all works fine locally, so I can only test it by
> > > committing and watching the bots, maybe I'll wait and revisit it when
we're
> > not
> > > in a crunch.
> > 
> > sgtm. I support the more specific syntax
> 
> The problem here is that "dynamic" is not a known type. The rename from
Dynamic
> to dynamic is not implemented in either dart2js or the VM.

Ah. It seems like it must be implemented on dart2js, as the code runs fine
there. But that makes sense, although it would be better if an unknown type
there was a compile error rather than a crash.

Powered by Google App Engine
This is Rietveld 408576698