16 lines
367 B
Plaintext
16 lines
367 B
Plaintext
|
==== tests/cases/compiler/moduleNewExportBug.ts (1 errors) ====
|
||
|
module mod1 {
|
||
|
interface mInt {
|
||
|
new (bar:any):any;
|
||
|
foo (bar:any):any;
|
||
|
}
|
||
|
|
||
|
class C { public moo() {}}
|
||
|
}
|
||
|
|
||
|
var c : mod1.C; // ERROR: C should not be visible
|
||
|
~~~~~~
|
||
|
!!! Module 'mod1' has no exported member 'C'.
|
||
|
|
||
|
|
||
|
|