dart-sdk/sdk
Lasse R.H. Nielsen d1382f983c Initial steps to add cast operation.
Start by adding static castTo method to the interfaces. This provides everybody with the
desired implementation without exposing the classes.
When implementing the cast method, the recommended way is to (extend the base class,
but if you choose not to ...) use the castTo method.

If we ever get a language feature, we can implement the castTo method using that,
without being stuck with an unnecessary class.

Change-Id: I53274e60c88a4de519bead85d2ca44c1065a9c1a
Reviewed-on: https://dart-review.googlesource.com/26620
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
2018-01-03 12:16:24 +00:00
..
bin Fix paths in sdk/bin/dartdevk.bat 2017-12-12 06:51:27 +00:00
lib Initial steps to add cast operation. 2018-01-03 12:16:24 +00:00
api_readme.md fix links in readme 2015-08-20 13:17:34 -07:00
BUILD.gn [GN] In Fuchsia build, use symlink for host dart-sdk/bin/dart copy 2017-12-21 19:34:41 +00:00