Chromium Code Reviews| Index: sky/sdk/lib/widgets/widget.dart |
| diff --git a/sky/sdk/lib/widgets/widget.dart b/sky/sdk/lib/widgets/widget.dart |
| index 7d450c98b11bdc330f7d7a1c48fb41004364fb4f..8381fc51befa12af6fe0dea18cb47244435266ce 100644 |
| --- a/sky/sdk/lib/widgets/widget.dart |
| +++ b/sky/sdk/lib/widgets/widget.dart |
| @@ -109,7 +109,8 @@ abstract class Widget { |
| // Returns the child which should be retained as the child of this node. |
| Widget syncChild(Widget node, Widget oldNode, dynamic slot) { |
| - assert(oldNode is! Component || !oldNode._disqualifiedFromEverAppearingAgain); |
| + assert(oldNode is! Component || |
| + !(oldNode as Component)._disqualifiedFromEverAppearingAgain); |
|
Hixie
2015/06/17 17:11:17
this warning is a bug in the analyzer, you should
hansmuller
2015/06/17 17:35:39
Done.
|
| if (node == oldNode) { |
| assert(node == null || node.mounted); |