TypeScript/tests/cases/conformance/salsa/namespaceAssignmentToRequireAlias.ts
Nathan Shively-Sanders 378083fcec
Nested assignment to a require alias isn't a declaration (#40186)
This is not something we can type correctly, and doesn't work in
Typescript either. Better to ignore it in JS.
2020-09-01 08:20:56 -07:00

14 lines
252 B
TypeScript

// @allowJs: true
// @checkJs: true
// @strict: true
// @outDir: out
// @declaration: true
// @filename: node_modules/untyped/index.js
module.exports = {}
// @filename: bug40140.js
const u = require('untyped');
u.assignment.nested = true
u.noError()