mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
441 B
TypeScript
27 lines
441 B
TypeScript
//// [tests/cases/compiler/castParentheses.ts] ////
|
|
|
|
//// [castParentheses.ts]
|
|
class a {
|
|
static b: any;
|
|
}
|
|
|
|
var b = (<any>a);
|
|
var b = (<any>a).b;
|
|
var b = (<any>a.b).c;
|
|
var b = (<any>a.b()).c;
|
|
var b = (<any>new a);
|
|
var b = (<any>new a.b);
|
|
var b = (<any>new a).b
|
|
|
|
//// [castParentheses.js]
|
|
"use strict";
|
|
class a {
|
|
}
|
|
var b = a;
|
|
var b = a.b;
|
|
var b = a.b.c;
|
|
var b = a.b().c;
|
|
var b = new a;
|
|
var b = new a.b;
|
|
var b = (new a).b;
|