Closed
Description
abstract A(Dynamic) from Dynamic to Dynamic {}
class Main {
static function main() {
var a:A = {};
a.test; // A has no field test
}
}
Is this too crazy?
I got that while working on making node.js url
externs. Its URL objects have this field:
@:optional var query:EitherType<String,Dynamic<String>>;
It contains either a string or a dynamic object parsed from that string, depending on the argument given to the parse
function. I suppose it's designed to allow field access to it in pure-js.
Metadata
Metadata
Assignees
Labels
No labels
Activity