Created
October 9, 2012 15:27
-
-
Save ostronom/3859522 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module V.Views { | |
| export class View { | |
| public someVar: any; | |
| // the presence of constructor doesn't affect the error triggering | |
| } | |
| } | |
| module V.App { | |
| export class Application { | |
| public registerView(url: string, viewKlass: V.Views.View): void | |
| { | |
| var test = new viewKlass(); | |
| } | |
| } | |
| } | |
| var app = new V.App.Application; | |
| class TestView extends V.Views.View { | |
| } | |
| class TestView2 extends V.Views.View { | |
| } | |
| app.registerView('', TestView) | |
| app.registerView('content/view/:slug/', TestView2) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(...): Value of type 'Views.View' is not newable