Chromium Code Reviews| Index: pkg/intl/lib/intl.dart |
| =================================================================== |
| --- pkg/intl/lib/intl.dart (revision 13484) |
| +++ pkg/intl/lib/intl.dart (working copy) |
| @@ -158,7 +158,7 @@ |
| * Note that null is interpreted as meaning the default locale, so if |
| * [newLocale] is null it will be returned. |
| */ |
| - static String verifiedLocale(String newLocale, bool localeExists(String), |
| + static String verifiedLocale(String newLocale, Function localeExists, |
| [Function onFailure = _throwLocaleError]) { |
| // TODO(alanknight): Previously we kept a single verified locale on the Intl |
| // object, but with different verification for different uses, that's more |
| @@ -232,7 +232,7 @@ |
| * until the proper locale has been set. This returns the result of calling |
| * [msg_function], which could be of an arbitrary type. |
| */ |
| - static dynamic withLocale(String locale, message_function()) { |
|
Emily Fortuna
2012/10/10 17:44:48
hmm bummer. So neither the VM nor dart2js recogniz
Alan Knight
2012/10/10 17:49:05
Looks like the problem was probably the explicit u
Emily Fortuna
2012/10/10 18:11:07
sgtm. I support the more specific syntax
Ivan Posva
2012/10/10 19:01:55
The problem here is that "dynamic" is not a known
|
| + static dynamic withLocale(String locale, Function message_function) { |
| // We have to do this silliness because Locale is not known at compile time, |
| // but must be a static variable in order to be visible to the Intl.message |
| // invocation. |