mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
22 lines
590 B
JavaScript
22 lines
590 B
JavaScript
class foundFirst {
|
|
}
|
|
class Other {
|
|
}
|
|
var Dotted;
|
|
(function(Dotted) {
|
|
class Name {
|
|
}
|
|
Dotted.Name = Name;
|
|
})(Dotted || (Dotted = {
|
|
}));
|
|
// Should find the intrinsic element, not the class element
|
|
var a = /*#__PURE__*/ React.createElement("foundFirst", {
|
|
x: "hello"
|
|
});
|
|
var b = /*#__PURE__*/ React.createElement("string_named", null);
|
|
// TODO: This should not be a parse error (should
|
|
// parse a property name here, not identifier)
|
|
// var c = <var />;
|
|
var d = /*#__PURE__*/ React.createElement(Other, null);
|
|
var e = /*#__PURE__*/ React.createElement(Dotted.Name, null);
|