Static generic methods don't seem to be supported. This would be an incredibly useful feature to me.
//Compiles fine
class MyClass {
myGenericMethod<U>(input: U): void { }
}
//Compiles fine
class...
Id #1052 | Release:
None
| Updated: Sat at 7:29 AM by thorn0 | Created: Sat at 4:32 AM by DRubino
Here is a peculiar exercise that I have to go through every time I need my module to depend on something that is not code, such as a template or a stylesheet:
// fragment (1)
declare module 'text...
Id #1046 | Release:
None
| Updated: Sat at 7:29 AM by thorn0 | Created: Thu at 12:53 PM by fsoikin
Consider the following code
module X {
export class ViewModel {
}
export class Widget<TViewModel extends ViewModel> {
public options: TViewModel;
constructor(viewModel: TViewModel) {
...
Id #1044 | Release:
None
| Updated: Sat at 7:30 AM by thorn0 | Created: Thu at 9:14 AM by WilliamMoy
When compiling the following snippets you get an error message saying: test.ts(4,17): error TS2156: Static member cannot be accessed off an instance variable. which isn't correct IMHO.
To reprod...
Id #1043 | Release:
None
| Updated: Thu at 8:11 PM by billti | Created: Thu at 6:51 AM by jrieken
When using a local function variable that matches the module name, exported variables are not assigned correctly.
TS code:
module modname {
export var varname;
export function stuff(modname:...
Id #1039 | Release:
None
| Updated: Thu at 8:21 PM by billti | Created: Tue at 6:59 PM by briandoessoftware
Hi, to reproduce:
Enter the following bit of text in any TypeScript file in Visual Studio.
// Foo/Bar/Baz
// Foo-Bar-Baz
// Foo+=Bar+=Baz
Copy any single line of text, omitting th...
Id #1036 | Release:
None
| Updated: Today at 10:12 AM by nabog | Created: Tue at 8:59 AM by nabog
I'm using overload-on-constants to provide interface descriptions for an object that can be passed through as a parameter to a function. The interface of the object can change depending on what con...
Id #1033 | Release:
None
| Updated: Thu at 11:49 PM by billti | Created: Tue at 4:13 AM by Griffork
Created from a comment in this issue: https://typescript.codeplex.com/workitem/772
TypeScript compiler creates an invalid sourcemap when combining the following 2 files
@animal.ts
module anim...
Id #1032 | Release:
None
| Updated: Sat at 4:56 PM by gmalkas | Created: May 13 at 10:00 PM by paulb
Steps:
checkout typescript project
run "npm install"
open src/compiler/ast.ts
change line #41 to "public isExpression() { returnfalse; }" to simulate an error
run "jake"
Results:
You will not ...
Id #1031 | Release:
None
| Updated: Thu at 11:14 PM by billti | Created: May 13 at 8:20 PM by bpasero
Copying from https://typescript.codeplex.com/workitem/1025
Dojo has a configuration system that allows it to load AMD modules from multiple paths depending on prefix. Therefore, module files can ...
Id #1030 | Release:
None
| Updated: Tue at 3:29 AM by schungx | Created: May 13 at 4:58 PM by RyanCavanaugh