mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-20 21:22:28 -05:00
Test: no declare in declaration tmp in namespace
This commit is contained in:
20
tests/cases/compiler/declarationEmitExpressionInExtends5.ts
Normal file
20
tests/cases/compiler/declarationEmitExpressionInExtends5.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
// @declaration: true
|
||||
namespace Test
|
||||
{
|
||||
export interface IFace
|
||||
{
|
||||
}
|
||||
|
||||
export class SomeClass implements IFace
|
||||
{
|
||||
}
|
||||
|
||||
export class Derived extends getClass<IFace>()
|
||||
{
|
||||
}
|
||||
|
||||
export function getClass<T>() : new() => T
|
||||
{
|
||||
return SomeClass as (new() => T);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user