2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/moduleMerge.ts ===
|
|
|
|
// This should not compile both B classes are in the same module this should be a collission
|
|
|
|
|
|
|
|
module A
|
2015-04-13 23:01:57 +02:00
|
|
|
>A : typeof A, Symbol(A, Decl(moduleMerge.ts, 0, 0), Decl(moduleMerge.ts, 11, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
{
|
|
|
|
class B
|
2015-04-13 23:01:57 +02:00
|
|
|
>B : B, Symbol(B, Decl(moduleMerge.ts, 3, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
{
|
|
|
|
public Hello(): string
|
2015-04-13 23:01:57 +02:00
|
|
|
>Hello : () => string, Symbol(Hello, Decl(moduleMerge.ts, 5, 5))
|
2014-08-15 23:33:16 +02:00
|
|
|
{
|
|
|
|
return "from private B";
|
2015-04-13 21:36:11 +02:00
|
|
|
>"from private B" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module A
|
2015-04-13 23:01:57 +02:00
|
|
|
>A : typeof A, Symbol(A, Decl(moduleMerge.ts, 0, 0), Decl(moduleMerge.ts, 11, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
{
|
|
|
|
export class B
|
2015-04-13 23:01:57 +02:00
|
|
|
>B : B, Symbol(B, Decl(moduleMerge.ts, 14, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
{
|
|
|
|
public Hello(): string
|
2015-04-13 23:01:57 +02:00
|
|
|
>Hello : () => string, Symbol(Hello, Decl(moduleMerge.ts, 16, 5))
|
2014-08-15 23:33:16 +02:00
|
|
|
{
|
|
|
|
return "from export B";
|
2015-04-13 21:36:11 +02:00
|
|
|
>"from export B" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|