Closed
Description
The following code snippet throws an internal error in Dartium.
@JS('CaretPosition')
class _CaretPosition {
external Node get offsetNode;
external int get offset;
}
Here's the error log from Dartium console.
Internal error: 'JsInteropImpl.dart': malformed type: line 2 pos 48: cannot resolve class 'lib._CaretPosition@342649749' from 'JsObjectImpl'
class JsObjectImpl extends JsObject implements lib._CaretPosition {
After changing the class name to CaretPosition
, Dartium no longer complains.
Both public and private names work okay in dart2js.