File tree Expand file tree Collapse file tree 3 files changed +61
-0
lines changed Expand file tree Collapse file tree 3 files changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ tests/cases/compiler/second.d.ts(2,27): error TS2304: Cannot find name 'CompletelyMissing'.
2
+ tests/cases/compiler/second.d.ts(2,27): error TS2503: Cannot find namespace 'CompletelyMissing'.
3
+
4
+
5
+ ==== tests/cases/compiler/second.d.ts (2 errors) ====
6
+ // Fixes #15094
7
+ export import Component = CompletelyMissing;
8
+ ~~~~~~~~~~~~~~~~~
9
+ !!! error TS2304: Cannot find name 'CompletelyMissing'.
10
+ ~~~~~~~~~~~~~~~~~
11
+ !!! error TS2503: Cannot find namespace 'CompletelyMissing'.
12
+ ==== tests/cases/compiler/first.d.ts (0 errors) ====
13
+ import * as Second from './second';
14
+ export = Second;
15
+ ==== tests/cases/compiler/crash.ts (0 errors) ====
16
+ import { Component } from './first';
17
+ class C extends Component { }
18
+
Original file line number Diff line number Diff line change
1
+ //// [tests/cases/compiler/reexportedMissingAlias.ts] ////
2
+
3
+ //// [second.d.ts]
4
+ // Fixes #15094
5
+ export import Component = CompletelyMissing ;
6
+ //// [first.d.ts]
7
+ import * as Second from './second' ;
8
+ export = Second ;
9
+ //// [crash.ts]
10
+ import { Component } from './first' ;
11
+ class C extends Component { }
12
+
13
+
14
+ //// [crash.js]
15
+ "use strict" ;
16
+ var __extends = ( this && this . __extends ) || ( function ( ) {
17
+ var extendStatics = Object . setPrototypeOf ||
18
+ ( { __proto__ : [ ] } instanceof Array && function ( d , b ) { d . __proto__ = b ; } ) ||
19
+ function ( d , b ) { for ( var p in b ) if ( b . hasOwnProperty ( p ) ) d [ p ] = b [ p ] ; } ;
20
+ return function ( d , b ) {
21
+ extendStatics ( d , b ) ;
22
+ function __ ( ) { this . constructor = d ; }
23
+ d . prototype = b === null ? Object . create ( b ) : ( __ . prototype = b . prototype , new __ ( ) ) ;
24
+ } ;
25
+ } ) ( ) ;
26
+ exports . __esModule = true ;
27
+ var first_1 = require ( "./first" ) ;
28
+ var C = ( function ( _super ) {
29
+ __extends ( C , _super ) ;
30
+ function C ( ) {
31
+ return _super !== null && _super . apply ( this , arguments ) || this ;
32
+ }
33
+ return C ;
34
+ } ( first_1 . Component ) ) ;
Original file line number Diff line number Diff line change
1
+ // Fixes #15094
2
+ // @Filename : second.d.ts
3
+ export import Component = CompletelyMissing ;
4
+ // @Filename : first.d.ts
5
+ import * as Second from './second' ;
6
+ export = Second ;
7
+ // @Filename : crash.ts
8
+ import { Component } from './first' ;
9
+ class C extends Component { }
You can’t perform that action at this time.
0 commit comments