Skip to content

Commit 18bd849

Browse files
Accepted baselines.
1 parent aef9edf commit 18bd849

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//// [declareIdentifierAsBeginningOfStatementExpression01.ts]
2+
class C {
3+
}
4+
5+
var declare: any;
6+
7+
declare instanceof C;
8+
9+
//// [declareIdentifierAsBeginningOfStatementExpression01.js]
10+
var C = (function () {
11+
function C() {
12+
}
13+
return C;
14+
})();
15+
var declare;
16+
declare instanceof C;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
=== tests/cases/compiler/declareIdentifierAsBeginningOfStatementExpression01.ts ===
2+
class C {
3+
>C : Symbol(C, Decl(declareIdentifierAsBeginningOfStatementExpression01.ts, 0, 0))
4+
}
5+
6+
var declare: any;
7+
>declare : Symbol(declare, Decl(declareIdentifierAsBeginningOfStatementExpression01.ts, 3, 3))
8+
9+
declare instanceof C;
10+
>declare : Symbol(declare, Decl(declareIdentifierAsBeginningOfStatementExpression01.ts, 3, 3))
11+
>C : Symbol(C, Decl(declareIdentifierAsBeginningOfStatementExpression01.ts, 0, 0))
12+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=== tests/cases/compiler/declareIdentifierAsBeginningOfStatementExpression01.ts ===
2+
class C {
3+
>C : C
4+
}
5+
6+
var declare: any;
7+
>declare : any
8+
9+
declare instanceof C;
10+
>declare instanceof C : boolean
11+
>declare : any
12+
>C : typeof C
13+

0 commit comments

Comments
 (0)