26121608a1
The current DateTime class takes DateTime objects as arguments, and then tries to access private members. That does not work if someone else implements the DateTime interface. Fixes #34962 BUG= http://dartbug.com/34962 Change-Id: I7191fe42f5b6efc1c7da5ed8e22b892b18f872f7 Reviewed-on: https://dart-review.googlesource.com/c/81828 Reviewed-by: Leaf Petersen <leafp@google.com> Reviewed-by: Stephen Adams <sra@google.com> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>