namespace TriangleArrayAndShapeArray { class Shape { } declare const TriangleType ; class Triangle extends Shape { [ TriangleType ] : void ; } declare function makeTriangles ( ) ; declare function draw ( shapes ) ; draw ( makeTriangles ( ) ) ; }