TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Add a warning when compile a class that extends another class which is not include

Open ybootin opened this issue 11 years ago • 1 comments

for exemple :

module mymodule {

export class myclass extends anotherclass {

should throw a warning because another class is not referenced as this in the header :

/// <reference path="./anotherclass.ts" />

this cause in error in code, because extends class is not includes in base class at runtime :

Uncaught TypeError: Cannot read property 'prototype' of undefined

ybootin avatar Feb 16 '15 11:02 ybootin

Duplicate of #21

RyanCavanaugh avatar Feb 16 '15 16:02 RyanCavanaugh