2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/typecheckIfCondition.ts(4,10): error TS2304: Cannot find name 'module'.
|
|
|
|
tests/cases/compiler/typecheckIfCondition.ts(4,26): error TS2304: Cannot find name 'module'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/typecheckIfCondition.ts (2 errors) ====
|
|
|
|
// both uses of module should be an undefined symbol
|
|
|
|
function myWrapper()
|
|
|
|
{
|
|
|
|
if (!module.exports) module.exports = "";
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'module'.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'module'.
|
2014-07-13 01:04:16 +02:00
|
|
|
var x = null; // don't want to baseline output
|
|
|
|
}
|
|
|
|
|