Closed shibukawa closed 11 years ago
I think this is a specification. Consider the following code:
var elements = nodes as Element[];
which really means:
var elements = new Element[];
nodes.forEach((node, i) -> {
elements[i] = nodes[i] as Element;
});
Taking O(n) calculation. Is it what you really want?
OK I understand. It takes much cost, current spec is better.
maplay
when Element extends Node, following code is invalid:
but following code is valid: