jcart6684 / google-api-dart-client

Automatically exported from code.google.com/p/google-api-dart-client
Apache License 2.0
0 stars 0 forks source link

Optional arguments cause error in checked mode #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We currently distinguish between 'null' and 'not passed' arguments by having 
method signatures like:

foo(bool arg1, [bool arg2 = UNDEFINED]) { ... }
final UNDEFINED = /* some object */

This doesn't work in checked mode, waiting on the fix to 
http://code.google.com/p/dart/issues/detail?id=4180 to show up in 
implementations.

Original issue reported on code.google.com by sammcc...@google.com on 3 Aug 2012 at 12:54

GoogleCodeExporter commented 9 years ago
Fix checked in using new ? operator, will be in next release.

Original comment by sammcc...@google.com on 17 Sep 2012 at 8:16