namespace ShapeAndTriangleWithIsRightAngled { class Shape { } declare const TriangleType ; class Triangle extends Shape { [ TriangleType ] : void ; isRightAngled ( ) { let result = false ; return result ; } } }