mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
566 B
Plaintext
14 lines
566 B
Plaintext
cannotInvokeNewOnErrorExpression.ts(5,15): error TS2339: Property 'ClassA' does not exist on type 'typeof M'.
|
|
cannotInvokeNewOnErrorExpression.ts(5,22): error TS1011: An element access expression should take an argument.
|
|
|
|
|
|
==== cannotInvokeNewOnErrorExpression.ts (2 errors) ====
|
|
namespace M
|
|
{
|
|
class ClassA {}
|
|
}
|
|
var t = new M.ClassA[];
|
|
~~~~~~
|
|
!!! error TS2339: Property 'ClassA' does not exist on type 'typeof M'.
|
|
|
|
!!! error TS1011: An element access expression should take an argument. |