1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
=== tests/cases/conformance/salsa/axios.js ===
class Axios {
>Axios : Axios
constructor() {
}
m() { }
>m : () => void
}
var axios = new Axios();
>axios : Axios
>new Axios() : Axios
>Axios : typeof Axios
// none of the 3 references should have a use-before-def error
axios.m()
>axios.m() : void
>axios.m : () => void
>axios : Axios
>m : () => void
module.exports = axios;
>module.exports = axios : typeof Axios
>module.exports : typeof Axios
>module : { "tests/cases/conformance/salsa/axios": typeof Axios; }
>exports : typeof Axios
>axios : Axios
module.exports.default = axios;
>module.exports.default = axios : Axios
>module.exports.default : Axios
>module.exports : typeof Axios
>module : { "tests/cases/conformance/salsa/axios": typeof Axios; }
>exports : typeof Axios
>default : Axios
>axios : Axios
|