Description
This issue was originally filed by [email protected]
What steps will reproduce the problem?
import('dart:html');
class testing {
testing() {
}
void run() {
write("Hello World!");
}
void write(String message) {
// the HTML library defines a global "document" variable
document.query('#status').innerHTML = message;
}
}
void main() {
new testing().run();
}
Gives these errors on JS compilation:
Generating JavaScript...
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32036:3: error: duplicate method definition of ""
factory Float64Array(int length) => _F64(length);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32037:3: error: duplicate method definition of "fromList"
factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32038:3: error: duplicate method definition of "fromBuffer"
factory Float64Array.fromBuffer(ArrayBuffer buffer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32044:3: error: duplicate method definition of ""
factory Int8Array(int length) => _I8(length);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32045:3: error: duplicate method definition of "fromList"
factory Int8Array.fromList(List<num> list) => _I8(ensureNative(list));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32046:3: error: duplicate method definition of "fromBuffer"
factory Int8Array.fromBuffer(ArrayBuffer buffer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32052:3: error: duplicate method definition of ""
factory Int16Array(int length) => _I16(length);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32053:3: error: duplicate method definition of "fromList"
factory Int16Array.fromList(List<num> list) => _I16(ensureNative(list));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32054:3: error: duplicate method definition of "fromBuffer"
factory Int16Array.fromBuffer(ArrayBuffer buffer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32060:3: error: duplicate method definition of ""
factory Int32Array(int length) => _I32(length);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32061:3: error: duplicate method definition of "fromList"
factory Int32Array.fromList(List<num> list) => _I32(ensureNative(list));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32062:3: error: duplicate method definition of "fromBuffer"
factory Int32Array.fromBuffer(ArrayBuffer buffer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32068:3: error: duplicate method definition of ""
factory Uint8Array(int length) => _U8(length);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32069:3: error: duplicate method definition of "fromList"
factory Uint8Array.fromList(List<num> list) => _U8(ensureNative(list));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32070:3: error: duplicate method definition of "fromBuffer"
factory Uint8Array.fromBuffer(ArrayBuffer buffer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32076:3: error: duplicate method definition of ""
factory Uint16Array(int length) => _U16(length);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32077:3: error: duplicate method definition of "fromList"
factory Uint16Array.fromList(List<num> list) => _U16(ensureNative(list));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32078:3: error: duplicate method definition of "fromBuffer"
factory Uint16Array.fromBuffer(ArrayBuffer buffer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32084:3: error: duplicate method definition of ""
factory Uint32Array(int length) => _U32(length);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32085:3: error: duplicate method definition of "fromList"
factory Uint32Array.fromList(List<num> list) => _U32(ensureNative(list));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32086:3: error: duplicate method definition of "fromBuffer"
factory Uint32Array.fromBuffer(ArrayBuffer buffer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32092:3: error: duplicate method definition of ""
factory Uint8ClampedArray(int length) => _U8C(length);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32093:3: error: duplicate method definition of "fromList"
factory Uint8ClampedArray.fromList(List<num> list) => _U8C(ensureNative(list));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:32094:3: error: duplicate method definition of "fromBuffer"
factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:10522:23: error: no matching constructor for html_Element
final container = new Element.tag("div");
^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:5059:15: error: no matching constructor for html_Element
final e = new Element.tag("div");
^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:5063:18: error: no matching constructor for List
List nodes = new List.from(e.nodes);
^^^^^^^^^^^^^^^^^^^^^^
D:/Development/dart/editor_latest/dart/dart-sdk/lib/html/html_frog.dart:4911:5: error: no matching constructor for List
new List.from(_childNodes.filter((n) => n is Element));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compilation failed with 28 errors
Compilation failed
Dartium launch runs ok.