Test: no declare in declaration tmp in namespace

This commit is contained in:
Nathan Shively-Sanders
2017-05-10 11:48:32 -07:00
parent 03bca49794
commit 7b660c8f36
4 changed files with 155 additions and 0 deletions

View 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);
}
}