<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>typescript Issue Tracker Rss Feed</title><link>https://typescript.codeplex.com/workitem/list/basic</link><description>typescript Issue Tracker Rss Description</description><item><title>Edited Unassigned: Copy-paste annoyance in Visual Studio [1036]</title><link>http://typescript.codeplex.com/workitem/1036</link><description>Hi, to reproduce&amp;#58;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#42; Enter the following bit of text in any TypeScript file in Visual Studio.&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;        &amp;#47;&amp;#47; Foo&amp;#47;Bar&amp;#47;Baz&lt;br /&gt;        &amp;#47;&amp;#47; Foo-Bar-Baz&lt;br /&gt;        &amp;#47;&amp;#47; Foo&amp;#43;&amp;#61;Bar&amp;#43;&amp;#61;Baz&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;&amp;#42; Copy any single line of text, omitting the comment slash, e.g. copy &amp;#34;Foo&amp;#47;Bar&amp;#47;Baz&amp;#34; into the clipboard.&lt;br /&gt;&lt;br /&gt;&amp;#42; Paste it back into the TypeScript file.&lt;br /&gt;&lt;br /&gt;&amp;#42; The pasted text is rendered with code formatting&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Foo&amp;#123;space&amp;#125;&amp;#47;&amp;#123;space&amp;#125;Bar&amp;#123;space&amp;#125;&amp;#47;&amp;#123;space&amp;#125;Baz&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Text pasted from the clipboard should not undergo any formatting. &lt;br /&gt;&lt;br /&gt;This is the behaviour in other code files in Visual Studio, such as C&amp;#35;.&lt;br /&gt;</description><author>nabog</author><pubDate>Sun, 19 May 2013 10:12:19 GMT</pubDate><guid isPermaLink="false">Edited Unassigned: Copy-paste annoyance in Visual Studio [1036] 20130519101219A</guid></item><item><title>Reopened Unassigned: Copy-paste annoyance in Visual Studio [1036]</title><link>http://typescript.codeplex.com/workitem/1036</link><description>Hi, to reproduce&amp;#58;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#42; Enter the following bit of text in any TypeScript file in Visual Studio.&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;        &amp;#47;&amp;#47; Foo&amp;#47;Bar&amp;#47;Baz&lt;br /&gt;        &amp;#47;&amp;#47; Foo-Bar-Baz&lt;br /&gt;        &amp;#47;&amp;#47; Foo&amp;#43;&amp;#61;Bar&amp;#43;&amp;#61;Baz&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;&amp;#42; Copy any single line of text, omitting the comment slash, e.g. copy &amp;#34;Foo&amp;#47;Bar&amp;#47;Baz&amp;#34; into the clipboard.&lt;br /&gt;&lt;br /&gt;&amp;#42; Paste it back into the TypeScript file.&lt;br /&gt;&lt;br /&gt;&amp;#42; The pasted text is rendered with code formatting&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Foo&amp;#123;space&amp;#125;&amp;#47;&amp;#123;space&amp;#125;Bar&amp;#123;space&amp;#125;&amp;#47;&amp;#123;space&amp;#125;Baz&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Text pasted from the clipboard should not undergo any formatting. &lt;br /&gt;&lt;br /&gt;This is the behaviour in other code files in Visual Studio, such as C&amp;#35;.&lt;br /&gt;</description><author>nabog</author><pubDate>Sun, 19 May 2013 10:12:13 GMT</pubDate><guid isPermaLink="false">Reopened Unassigned: Copy-paste annoyance in Visual Studio [1036] 20130519101213A</guid></item><item><title>Commented Unassigned: Copy-paste annoyance in Visual Studio [1036]</title><link>http://typescript.codeplex.com/workitem/1036</link><description>Hi, to reproduce&amp;#58;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#42; Enter the following bit of text in any TypeScript file in Visual Studio.&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;        &amp;#47;&amp;#47; Foo&amp;#47;Bar&amp;#47;Baz&lt;br /&gt;        &amp;#47;&amp;#47; Foo-Bar-Baz&lt;br /&gt;        &amp;#47;&amp;#47; Foo&amp;#43;&amp;#61;Bar&amp;#43;&amp;#61;Baz&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;&amp;#42; Copy any single line of text, omitting the comment slash, e.g. copy &amp;#34;Foo&amp;#47;Bar&amp;#47;Baz&amp;#34; into the clipboard.&lt;br /&gt;&lt;br /&gt;&amp;#42; Paste it back into the TypeScript file.&lt;br /&gt;&lt;br /&gt;&amp;#42; The pasted text is rendered with code formatting&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Foo&amp;#123;space&amp;#125;&amp;#47;&amp;#123;space&amp;#125;Bar&amp;#123;space&amp;#125;&amp;#47;&amp;#123;space&amp;#125;Baz&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Text pasted from the clipboard should not undergo any formatting. &lt;br /&gt;&lt;br /&gt;This is the behaviour in other code files in Visual Studio, such as C&amp;#35;.&lt;br /&gt;Comments: I believe the &amp;#34;Automatically format on paste&amp;#34; behaviour in the TypeScript editor is a bit faulty.&amp;#10;&amp;#10;I already have this checked for C&amp;#35; but the C&amp;#35; edit does not have the behaviour that I described in my original post. I think the C&amp;#35; editor is clever enough to only attempt to format pasted text that was already formatted when it was copied to the clipboard.&amp;#10;&amp;#10;If I uncheck the TypeScript option &amp;#34;Format on paste&amp;#34; then nothing gets formatted on paste, for example copying and pasting a method within a class leads to unformatted code.&amp;#10;&amp;#10;I would like to keep &amp;#34;Format on paste&amp;#34; on, but that shouldn&amp;#39;t attempt to format previously unformatted text pasted from the clipboard.</description><author>nabog</author><pubDate>Sun, 19 May 2013 10:12:10 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Copy-paste annoyance in Visual Studio [1036] 20130519101210A</guid></item><item><title>Commented Issue: Invalid sourcemap when combining 2 files [1032]</title><link>http://typescript.codeplex.com/workitem/1032</link><description>Created from a comment in this issue&amp;#58; https&amp;#58;&amp;#47;&amp;#47;typescript.codeplex.com&amp;#47;workitem&amp;#47;772 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TypeScript compiler creates an invalid sourcemap when combining the following 2 files&lt;br /&gt;&lt;br /&gt;&amp;#64;animal.ts&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;module animals &amp;#123;&lt;br /&gt;&lt;br /&gt;  export class Animal &amp;#123;&lt;br /&gt;    private killed&amp;#59;&lt;br /&gt;&lt;br /&gt;    kill&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;      this.killed &amp;#61; true&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;  &amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&amp;#64;dog.ts&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;module animals &amp;#123;&lt;br /&gt;&lt;br /&gt;  class Dog extends Animal &amp;#123;&lt;br /&gt;    bark&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;      console.log&amp;#40;&amp;#39;bark&amp;#39;&amp;#41;&lt;br /&gt;    &amp;#125;&lt;br /&gt;  &amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;validate using source-map module in node&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;var SourceMapConsumer &amp;#61; require&amp;#40;&amp;#39;source-map&amp;#39;&amp;#41;.SourceMapConsumer&amp;#59;&lt;br /&gt;new SourceMapConsumer&amp;#40;require&amp;#40;&amp;#39;fs&amp;#39;&amp;#41;.readFileSync&amp;#40;&amp;#39;bug.js.map&amp;#39;, &amp;#39;utf8&amp;#39;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Comments: Please find attached a patch which I believe fixes the issue.</description><author>Naav</author><pubDate>Sat, 18 May 2013 14:28:49 GMT</pubDate><guid isPermaLink="false">Commented Issue: Invalid sourcemap when combining 2 files [1032] 20130518022849P</guid></item><item><title>Commented Issue: Invalid sourcemap when combining 2 files [1032]</title><link>http://typescript.codeplex.com/workitem/1032</link><description>Created from a comment in this issue&amp;#58; https&amp;#58;&amp;#47;&amp;#47;typescript.codeplex.com&amp;#47;workitem&amp;#47;772 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TypeScript compiler creates an invalid sourcemap when combining the following 2 files&lt;br /&gt;&lt;br /&gt;&amp;#64;animal.ts&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;module animals &amp;#123;&lt;br /&gt;&lt;br /&gt;  export class Animal &amp;#123;&lt;br /&gt;    private killed&amp;#59;&lt;br /&gt;&lt;br /&gt;    kill&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;      this.killed &amp;#61; true&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;  &amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&amp;#64;dog.ts&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;module animals &amp;#123;&lt;br /&gt;&lt;br /&gt;  class Dog extends Animal &amp;#123;&lt;br /&gt;    bark&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;      console.log&amp;#40;&amp;#39;bark&amp;#39;&amp;#41;&lt;br /&gt;    &amp;#125;&lt;br /&gt;  &amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;validate using source-map module in node&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;var SourceMapConsumer &amp;#61; require&amp;#40;&amp;#39;source-map&amp;#39;&amp;#41;.SourceMapConsumer&amp;#59;&lt;br /&gt;new SourceMapConsumer&amp;#40;require&amp;#40;&amp;#39;fs&amp;#39;&amp;#41;.readFileSync&amp;#40;&amp;#39;bug.js.map&amp;#39;, &amp;#39;utf8&amp;#39;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Comments: It seems this problem comes from the fact that the TypeScript compiler uses a list to store mapping names &amp;#40;therefore allowing duplicates&amp;#41;&amp;#58;&amp;#10;&amp;#10;&amp;#91;&amp;#34;animals&amp;#34;,&amp;#34;animals.Animal&amp;#34;,&amp;#34;animals.Animal.constructor&amp;#34;,&amp;#34;animals.Animal.kill&amp;#34;,&amp;#34;animals&amp;#34;,&amp;#34;animals.Dog&amp;#34;,&amp;#34;animals.Dog.constructor&amp;#34;,&amp;#34;animals.Dog.bark&amp;#34;&amp;#93;&amp;#10;&amp;#10;SourceMapConsumer uses a set, so all duplicate names disappear, leading to an incorrect offset during mapping name translation.&amp;#10;&amp;#10;I&amp;#39;ll submit a patch if I can figure out how this Codeplex thing works.</description><author>Naav</author><pubDate>Sat, 18 May 2013 09:43:27 GMT</pubDate><guid isPermaLink="false">Commented Issue: Invalid sourcemap when combining 2 files [1032] 20130518094327A</guid></item><item><title>Created Unassigned: Static generic methods are not supported. [1052]</title><link>http://typescript.codeplex.com/workitem/1052</link><description>Static generic methods don&amp;#39;t seem to be supported. This would be an incredibly useful feature to me.&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&amp;#47;&amp;#47;Compiles fine&lt;br /&gt;class MyClass &amp;#123;&lt;br /&gt;    myGenericMethod&amp;#60;U&amp;#62;&amp;#40;input&amp;#58; U&amp;#41;&amp;#58; void &amp;#123; &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47;Compiles fine&lt;br /&gt;class MyGenericClass&amp;#60;T&amp;#62; &amp;#123;&lt;br /&gt;    myGenericMethod&amp;#60;U&amp;#62;&amp;#40;input&amp;#58; U&amp;#41;&amp;#58; void &amp;#123; &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47;Does not compile&lt;br /&gt;class MyStaticClass &amp;#123;&lt;br /&gt;    static myGenericMethod&amp;#60;U&amp;#62;&amp;#40;input&amp;#58; U&amp;#41;&amp;#58; void &amp;#123; &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47;Does not compile&lt;br /&gt;class MyStaticGenericClass&amp;#60;T&amp;#62; &amp;#123;&lt;br /&gt;    static myGenericMethod&amp;#60;U&amp;#62;&amp;#40;input&amp;#58; U&amp;#41;&amp;#58; void &amp;#123; &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Unrelated to the issue, but you fixed one of my other issues. How can I install the latest build of TypeScript 0.9 alpha&amp;#63; I&amp;#39;d love to get my hands on the most recent changes.&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;Doug Rubino&lt;br /&gt;</description><author>DRubino</author><pubDate>Sat, 18 May 2013 04:32:29 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Static generic methods are not supported. [1052] 20130518043229A</guid></item><item><title>Closed Issue: Store certification fails with TS-generated files [531]</title><link>http://typescript.codeplex.com/workitem/531</link><description>The current version of TypeScript does not output the generated javascript&amp;#47;map files as UTF-8 with the byte order mark.&lt;br /&gt;&lt;br /&gt;Store certification for WinJS apps requires that the js files are UTF-8 with BOM. Apps without will fail certification.&lt;br /&gt;&lt;br /&gt;This is a blocker for Store apps that want to use TypeScript.&lt;br /&gt;Comments: This should be fixed with https&amp;#58;&amp;#47;&amp;#47;typescript.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;307e63d6b2bdad42cf3e15ac8a84af8851cdb783 .  Basically, if any input file has a BOM, then we&amp;#39;ll emit the generated code files with a BOM also.</description><author>billti</author><pubDate>Sat, 18 May 2013 01:10:16 GMT</pubDate><guid isPermaLink="false">Closed Issue: Store certification fails with TS-generated files [531] 20130518011016A</guid></item><item><title>Closed Issue: Generic interface extension fails for 0.9 alpha [1002]</title><link>http://typescript.codeplex.com/workitem/1002</link><description>To whom it may concern,&lt;br /&gt;&lt;br /&gt;Thank you for considering my bug report. I love TypeScript and was eager to try out the new generics support. While trying to extend the interface for Array&amp;#60;T&amp;#62;, I think I uncovered a more general bug.&lt;br /&gt;&lt;br /&gt;The two code snippets below represent analogous ways to extend an interface. The first example does not compile and the second does. The only difference is that the first has a generic parameter.&lt;br /&gt;&lt;br /&gt;My sense is that this feature should be supported.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;Doug&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&amp;#47;&amp;#47;Does not compile&lt;br /&gt;interface IA&amp;#60;T&amp;#62; &amp;#123; x&amp;#58; string &amp;#125;&lt;br /&gt;interface IB&amp;#60;T&amp;#62; &amp;#123; y&amp;#58; string &amp;#125;&lt;br /&gt;interface IB&amp;#60;T&amp;#62; extends IA&amp;#60;T&amp;#62; &amp;#123;&amp;#125;&lt;br /&gt;class B implements IB&amp;#60;number&amp;#62; &amp;#123;&lt;br /&gt;    x&amp;#58; string&amp;#59;&lt;br /&gt;    y&amp;#58; string&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47;Does compile&lt;br /&gt;interface IC &amp;#123; x&amp;#58; string &amp;#125;&lt;br /&gt;interface ID &amp;#123; y&amp;#58; string &amp;#125;&lt;br /&gt;interface ID extends IC &amp;#123;&amp;#125;&lt;br /&gt;class C implements IC &amp;#123;&lt;br /&gt;    x&amp;#58; string&amp;#59;&lt;br /&gt;    y&amp;#58; string&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Comments: This should be fixed now as of http&amp;#58;&amp;#47;&amp;#47;typescript.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;a74df8e6f44f048a8eba363b066c5cfb14f17604 .  Thanks&amp;#33;</description><author>billti</author><pubDate>Sat, 18 May 2013 00:18:07 GMT</pubDate><guid isPermaLink="false">Closed Issue: Generic interface extension fails for 0.9 alpha [1002] 20130518121807A</guid></item><item><title>Commented Unassigned: intellisense gone whenever writing something in a try catch block. [1048]</title><link>http://typescript.codeplex.com/workitem/1048</link><description> I am using 0.9 preview. However, whenever I write something in a try catch block, intellisense  gone completely in the TS file, while others TS file are still having intellisense, as long as I don&amp;#39;t write anything inside the try catch block. &lt;br /&gt;&lt;br /&gt;Creating a new try catch block with empty content will also trigger the same problem.&lt;br /&gt;&lt;br /&gt;Reloading the file or the solution won&amp;#39;t fix the problem.&lt;br /&gt;&lt;br /&gt;The only way to restore intellisense is to restart VS IDE.&lt;br /&gt;&lt;br /&gt;Now I have to be very careful and write a try catch block in Programmer&amp;#39;s Notepad and then copy&amp;#47;paste back to VS IDE. Odd and troublesome.&lt;br /&gt;&lt;br /&gt;&amp;#58;&amp;#40;&lt;br /&gt;Comments: Even a fresh app.ts created by the IDE suffers the same problem as soon as I add a try catch block.&amp;#10;&amp;#10;I had 0.8.3.1, and uninstalled it, then installed 0.9. I guess the clean up process of the uninstallation is not clean enough&amp;#10;&amp;#10;It might be just me, and I had a silly work around now. Hopefully next release will be better.</description><author>zijianhuang</author><pubDate>Fri, 17 May 2013 23:20:32 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: intellisense gone whenever writing something in a try catch block. [1048] 20130517112032P</guid></item><item><title>Closed Unassigned: intellisense gone whenever writing something in a try catch block. [1048]</title><link>http://typescript.codeplex.com/workitem/1048</link><description> I am using 0.9 preview. However, whenever I write something in a try catch block, intellisense  gone completely in the TS file, while others TS file are still having intellisense, as long as I don&amp;#39;t write anything inside the try catch block. &lt;br /&gt;&lt;br /&gt;Creating a new try catch block with empty content will also trigger the same problem.&lt;br /&gt;&lt;br /&gt;Reloading the file or the solution won&amp;#39;t fix the problem.&lt;br /&gt;&lt;br /&gt;The only way to restore intellisense is to restart VS IDE.&lt;br /&gt;&lt;br /&gt;Now I have to be very careful and write a try catch block in Programmer&amp;#39;s Notepad and then copy&amp;#47;paste back to VS IDE. Odd and troublesome.&lt;br /&gt;&lt;br /&gt;&amp;#58;&amp;#40;&lt;br /&gt;Comments: I&amp;#39;m not able to reproduce this using the latest bits from the development branch. &amp;#10;&amp;#10;&amp;#10;Does it happen in projects of all sizes or only large projects. &amp;#10;&amp;#10;Thanks</description><author>paulb</author><pubDate>Fri, 17 May 2013 22:34:47 GMT</pubDate><guid isPermaLink="false">Closed Unassigned: intellisense gone whenever writing something in a try catch block. [1048] 20130517103447P</guid></item><item><title>Commented Unassigned: public and private method with same name but no compiler error [1051]</title><link>http://typescript.codeplex.com/workitem/1051</link><description>Just coming to TypeScript and CodePlex.&lt;br /&gt;&lt;br /&gt;I converted a file that had two functions in it &amp;#40;notice the underscore&amp;#41;&amp;#58;&lt;br /&gt;&lt;br /&gt;_sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;In typescript I changed this to&amp;#58;&lt;br /&gt;&lt;br /&gt;private  sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;public   sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;Since they were far apart in the file I couldn&amp;#39;t see the obvious __but the typescript compiler didn&amp;#39;t warn or produce an error either__ which caused my app to stop working because of &amp;#34;infinite recursion&amp;#34;.&lt;br /&gt;&lt;br /&gt;Anyway I changed them back to the first naming convention in typescript&amp;#58;&lt;br /&gt;&lt;br /&gt;private  _sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;public   sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comments: That looks good.  Thanks.</description><author>K2P2</author><pubDate>Fri, 17 May 2013 19:06:42 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: public and private method with same name but no compiler error [1051] 20130517070642P</guid></item><item><title>Commented Unassigned: Preserve comments should not emit /// references [995]</title><link>http://typescript.codeplex.com/workitem/995</link><description>Hi Guys,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve got a problem with TypeScripts &amp;#34;preserve comments&amp;#34; mechanism.&lt;br /&gt;&lt;br /&gt;In my existing project I&amp;#39;m using Cassette to serve up my JavaScript files.  If you haven&amp;#39;t heard about Cassette you can read up on it here&amp;#58; http&amp;#58;&amp;#47;&amp;#47;getcassette.net&lt;br /&gt;&lt;br /&gt;In particular I&amp;#39;m taking advantage of the ability to get Cassette to serve scripts in dependency order through the use of reference comments at the top of JavaScript files that look like this&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47; &amp;#64;reference other.js&lt;br /&gt;&lt;br /&gt;or this&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47;&amp;#47; &amp;#60;reference path&amp;#61;&amp;#34;other.js&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&lt;br /&gt;&amp;#40;nb if interested you can find more details on how that works here&amp;#58; http&amp;#58;&amp;#47;&amp;#47;getcassette.net&amp;#47;documentation&amp;#47;v1&amp;#47;AssetReferences &amp;#41;&lt;br /&gt;&lt;br /&gt;Because I want to continue to take advantage of this feature of Cassette working with the JavaScript generated by the TypeScript compiler I was intending to enable the &amp;#34;preserve comments&amp;#34; option.  This would work fine with me making use of the &amp;#34;&amp;#47;&amp;#47; &amp;#64;reference other.js&amp;#34; style references in my TypeScript.  However, to my frustration the typing file comments are &amp;#42; __also__ &amp;#42; being preserved.  This seems a little strange to me since these aren&amp;#39;t strictly speaking comments, more compiler directives masquerading as comments.&lt;br /&gt;&lt;br /&gt;So my JavaScript ends up with references to the typings files like this&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47;&amp;#47; &amp;#60;reference path&amp;#61;&amp;#34;jquery.d.ts&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&lt;br /&gt;Just to demonstrate, TypeScript like this&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&amp;#47;&amp;#47; &amp;#64;reference jQuery-1.8.2.js&lt;br /&gt;&amp;#47;&amp;#47;&amp;#47; &amp;#60;reference path&amp;#61;&amp;#34;jquery.d.ts&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47; Module&lt;br /&gt;module Shapes &amp;#123;&lt;br /&gt;&lt;br /&gt;    &amp;#47;&amp;#47; Class&lt;br /&gt;    export class Point implements IPoint &amp;#123;&lt;br /&gt;        &amp;#47;&amp;#47; Constructor&lt;br /&gt;        constructor &amp;#40;public x&amp;#58; number, public y&amp;#58; number&amp;#41; &amp;#123; &amp;#125;&lt;br /&gt;&lt;br /&gt;        &amp;#47;&amp;#47; Instance member&lt;br /&gt;        getDist&amp;#40;&amp;#41; &amp;#123; return Math.sqrt&amp;#40;this.x &amp;#42; this.x &amp;#43; this.y &amp;#42; this.y&amp;#41;&amp;#59; &amp;#125;&lt;br /&gt;&lt;br /&gt;        &amp;#47;&amp;#47; Static member&lt;br /&gt;        static origin &amp;#61; new Point&amp;#40;0, 0&amp;#41;&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47; Interface&lt;br /&gt;interface IPoint &amp;#123;&lt;br /&gt;    getDist&amp;#40;&amp;#41;&amp;#58; number&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47; Local variables&lt;br /&gt;var p&amp;#58; IPoint &amp;#61; new Shapes.Point&amp;#40;3, 4&amp;#41;&amp;#59;&lt;br /&gt;var dist &amp;#61; p.getDist&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Will generate JavaScript like this&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&amp;#47;&amp;#47; &amp;#64;reference jQuery-1.8.2.js&lt;br /&gt;&amp;#47;&amp;#47;&amp;#47; &amp;#60;reference path&amp;#61;&amp;#34;jquery.d.ts&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&amp;#47;&amp;#47; Module&lt;br /&gt;var Shapes&amp;#59;&lt;br /&gt;&amp;#40;function &amp;#40;Shapes&amp;#41; &amp;#123;&lt;br /&gt;    &amp;#47;&amp;#47; Class&lt;br /&gt;    var Point &amp;#61; &amp;#40;function &amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;        &amp;#47;&amp;#47; Constructor&lt;br /&gt;        function Point&amp;#40;x, y&amp;#41; &amp;#123;&lt;br /&gt;            this.x &amp;#61; x&amp;#59;&lt;br /&gt;            this.y &amp;#61; y&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;        Point.prototype.getDist &amp;#61; &amp;#47;&amp;#47; Instance member&lt;br /&gt;        function &amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;            return Math.sqrt&amp;#40;this.x &amp;#42; this.x &amp;#43; this.y &amp;#42; this.y&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&amp;#59;&lt;br /&gt;        Point.origin &amp;#61; new Point&amp;#40;0, 0&amp;#41;&amp;#59;&lt;br /&gt;        return Point&amp;#59;&lt;br /&gt;    &amp;#125;&amp;#41;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;    Shapes.Point &amp;#61; Point&amp;#59;    &lt;br /&gt;&amp;#125;&amp;#41;&amp;#40;Shapes &amp;#124;&amp;#124; &amp;#40;Shapes &amp;#61; &amp;#123;&amp;#125;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#47;&amp;#47; Local variables&lt;br /&gt;var p &amp;#61; new Shapes.Point&amp;#40;3, 4&amp;#41;&amp;#59;&lt;br /&gt;var dist &amp;#61; p.getDist&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#47;&amp;#47;&amp;#64; sourceMappingURL&amp;#61;file1.js.map&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;As you can see this has the unfortunate side effect of serving up the typing files which will in turn make Cassette serve up the TypeScript typings files with the JavaScript.  And that stops me from making use of TypeScript in the way I would hope.&lt;br /&gt;&lt;br /&gt;Would it be possible to introduce more fine grained control over what comments should be preserved&amp;#63;&lt;br /&gt;&lt;br /&gt;Perhaps it would be possible to include a block syntax that, if present would indicate that a set of comments should __not__  be preserved&amp;#63;  Maybe something as simple as this would suffice&amp;#63;&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&amp;#47;&amp;#47;&amp;#60;&amp;#33;--&lt;br /&gt;&amp;#47;&amp;#47;&amp;#47; &amp;#60;reference path&amp;#61;&amp;#34;jquery.d.ts&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&amp;#47;&amp;#47;--&amp;#62;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;Alternatively, would it be possible to introduce a compiler option which preserved comments but not comments that are actually typing references&amp;#63;  Either would work for me...&lt;br /&gt;Comments: Thanks for the additional info. I believe in general we would aim to expose any public compiler flags with project support &amp;#40;whether that means in the project file and&amp;#47;or project properties UI or something else&amp;#41;.&amp;#10;&amp;#10;No need for a new issue, we use these to track suggestions as well as bugs.</description><author>danquirk</author><pubDate>Fri, 17 May 2013 18:04:26 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Preserve comments should not emit /// references [995] 20130517060426P</guid></item><item><title>Closed Unassigned: Terminating curling brace not required [1049]</title><link>http://typescript.codeplex.com/workitem/1049</link><description>The compiler &amp;#40;0.8.0&amp;#41; does not complain about this piece of code&amp;#58;&lt;br /&gt;&lt;br /&gt;    class xyz &amp;#123;&lt;br /&gt;        public fun&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;Notice the missing terminating &amp;#125;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comments: Thanks for reporting this has been fixed in later builds.</description><author>paulb</author><pubDate>Fri, 17 May 2013 17:01:29 GMT</pubDate><guid isPermaLink="false">Closed Unassigned: Terminating curling brace not required [1049] 20130517050129P</guid></item><item><title>Closed Unassigned: Compilation with --out to only add files that are referenced in the code [1050]</title><link>http://typescript.codeplex.com/workitem/1050</link><description>In some languages &amp;#40;e.g. ActionScript3 where a lot of the new typescript devs are coming from&amp;#41; imports are the equivalent of typescripts &amp;#47;&amp;#47;&amp;#47;&amp;#60;reference path&amp;#61;&amp;#39;typescript.ts&amp;#39; &amp;#47;&amp;#62; references. &lt;br /&gt;The --out parameter ist the equivalent of an swf compilation &amp;#40;put everything in one file&amp;#41;&lt;br /&gt;&lt;br /&gt;One major advantage of the AS3 Compiler is, that it knows which classes are really used and only include these classes&amp;#47;files into the final package. It would be great if typescript had the same capabilities as i would make writing typescript for the browser a lot easier. &lt;br /&gt;Comments: This is by design. Consider the scenario in a web-browser where you load several js files, each can reference classes in each other and we don&amp;#39;t have a way to determine which are used and which are not. &amp;#10;&amp;#10;&amp;#10;The second issue you&amp;#39;ve reported about the ordering of classes. Can you open a new bug for that with a small repro.&amp;#10;&amp;#10;Thanks&amp;#33;</description><author>paulb</author><pubDate>Fri, 17 May 2013 17:00:45 GMT</pubDate><guid isPermaLink="false">Closed Unassigned: Compilation with --out to only add files that are referenced in the code [1050] 20130517050045P</guid></item><item><title>Closed Unassigned: public and private method with same name but no compiler error [1051]</title><link>http://typescript.codeplex.com/workitem/1051</link><description>Just coming to TypeScript and CodePlex.&lt;br /&gt;&lt;br /&gt;I converted a file that had two functions in it &amp;#40;notice the underscore&amp;#41;&amp;#58;&lt;br /&gt;&lt;br /&gt;_sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;In typescript I changed this to&amp;#58;&lt;br /&gt;&lt;br /&gt;private  sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;public   sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;Since they were far apart in the file I couldn&amp;#39;t see the obvious __but the typescript compiler didn&amp;#39;t warn or produce an error either__ which caused my app to stop working because of &amp;#34;infinite recursion&amp;#34;.&lt;br /&gt;&lt;br /&gt;Anyway I changed them back to the first naming convention in typescript&amp;#58;&lt;br /&gt;&lt;br /&gt;private  _sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;public   sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comments: Thanks for reporting this. I tried this in the 0.9 version of the compiler in the develop branch and get the error as expected using the following snippet&amp;#58;&amp;#10;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&amp;#10;class C &amp;#123;&amp;#10;    private sendJsonAsync &amp;#61; function &amp;#40;url, json&amp;#41; &amp;#123; &amp;#125;&amp;#10;    public sendJsonAsync &amp;#61; function &amp;#40;url, json&amp;#41; &amp;#123; &amp;#125;&amp;#10;&amp;#125;&amp;#10;&amp;#96;&amp;#96;&amp;#96;&amp;#96;&amp;#10;&amp;#10;Is this what you tried&amp;#63; Can you post a more complete sample if you did something different. Thanks&amp;#33;</description><author>paulb</author><pubDate>Fri, 17 May 2013 16:53:55 GMT</pubDate><guid isPermaLink="false">Closed Unassigned: public and private method with same name but no compiler error [1051] 20130517045355P</guid></item><item><title>Edited Unassigned: public and private method with same name but no compiler error [1051]</title><link>http://typescript.codeplex.com/workitem/1051</link><description>Just coming to TypeScript and CodePlex.&lt;br /&gt;&lt;br /&gt;I converted a file that had two functions in it &amp;#40;notice the underscore&amp;#41;&amp;#58;&lt;br /&gt;&lt;br /&gt;_sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;In typescript I changed this to&amp;#58;&lt;br /&gt;&lt;br /&gt;private  sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;public   sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;Since they were far apart in the file I couldn&amp;#39;t see the obvious __but the typescript compiler didn&amp;#39;t warn or produce an error either__ which caused my app to stop working because of &amp;#34;infinite recursion&amp;#34;.&lt;br /&gt;&lt;br /&gt;Anyway I changed them back to the first naming convention in typescript&amp;#58;&lt;br /&gt;&lt;br /&gt;private  _sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;public   sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description><author>K2P2</author><pubDate>Fri, 17 May 2013 16:45:24 GMT</pubDate><guid isPermaLink="false">Edited Unassigned: public and private method with same name but no compiler error [1051] 20130517044524P</guid></item><item><title>Created Unassigned: public and private member with same name but no compiler error [1051]</title><link>http://typescript.codeplex.com/workitem/1051</link><description>Just coming to TypeScript and CodePlex.&lt;br /&gt;&lt;br /&gt;I converted a file that had two functions in it &amp;#40;notice the underscore&amp;#41;&amp;#58;&lt;br /&gt;&lt;br /&gt;_sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;In typescript I changed this to&amp;#58;&lt;br /&gt;&lt;br /&gt;private  sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;public   sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;Since they were far apart in the file I couldn&amp;#39;t see the obvious __but the typescript compiler didn&amp;#39;t warn or produce an error either__ which caused my app to stop working because of &amp;#34;infinite recursion&amp;#34;.&lt;br /&gt;&lt;br /&gt;Anyway I changed them back to the first naming convention in typescript&amp;#58;&lt;br /&gt;&lt;br /&gt;private  _sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;  and&lt;br /&gt;public   sendJsonAsync &amp;#61; function &amp;#40; url, json &amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description><author>K2P2</author><pubDate>Fri, 17 May 2013 16:27:57 GMT</pubDate><guid isPermaLink="false">Created Unassigned: public and private member with same name but no compiler error [1051] 20130517042757P</guid></item><item><title>Closed Unassigned: module imports get lost [1038]</title><link>http://typescript.codeplex.com/workitem/1038</link><description>&amp;#42; use the latest from develop &amp;#40;7682fa4&amp;#41;&lt;br /&gt;&amp;#42; compile the snippet below&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;import foo &amp;#61; module&amp;#40;&amp;#39;super&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;function bar&amp;#40;f&amp;#41; &amp;#123;&lt;br /&gt;&amp;#9;return true&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;console.log&amp;#40;bar&amp;#40;foo&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;&amp;#42; see that the generated code misses the import and will cause an error&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function bar&amp;#40;f&amp;#41; &amp;#123;&lt;br /&gt;    return true&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;console.log&amp;#40;bar&amp;#40;foo&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comments: This is the same issue as https&amp;#58;&amp;#47;&amp;#47;typescript.codeplex.com&amp;#47;workitem&amp;#47;1029 .  We&amp;#39;re looking into it.</description><author>billti</author><pubDate>Fri, 17 May 2013 15:08:27 GMT</pubDate><guid isPermaLink="false">Closed Unassigned: module imports get lost [1038] 20130517030827P</guid></item><item><title>Commented Feature: Support non-code AMD modules [1046]</title><link>http://typescript.codeplex.com/workitem/1046</link><description>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&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;     &amp;#47;&amp;#47; fragment &amp;#40;1&amp;#41;&lt;br /&gt;     declare module &amp;#39;text&amp;#33;.&amp;#47;Templates&amp;#47;Template.html&amp;#39; &amp;#123; &amp;#125;&lt;br /&gt;     import template &amp;#61; module&amp;#40; &amp;#39;text&amp;#33;.&amp;#47;Templates&amp;#47;Template.html&amp;#39; &amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;And then&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;     &amp;#47;&amp;#47; fragment &amp;#40;2&amp;#41;&lt;br /&gt;     &amp;#36;&amp;#40;element&amp;#41;.html&amp;#40; &amp;#60;string&amp;#62;template &amp;#41;&amp;#59;&lt;br /&gt;     ko.applyBindings&amp;#40; this, element &amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;The first solution that jumps to mind is not to use TypeScript module syntax at all, but instead wrap fragment __&amp;#40;2&amp;#41;__ in a straight __require&amp;#40;&amp;#41;__ call, like this&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;     &amp;#47;&amp;#47; fragment &amp;#40;3&amp;#41;&lt;br /&gt;     require&amp;#40; &amp;#91;&amp;#39;text&amp;#33;.&amp;#47;Templates&amp;#47;Template.html&amp;#39;&amp;#93;, &amp;#40;template&amp;#58; string&amp;#41; &amp;#61;&amp;#62; &amp;#123;&lt;br /&gt;         &amp;#36;&amp;#40;element&amp;#41;.html&amp;#40; &amp;#60;string&amp;#62;template &amp;#41;&amp;#59;&lt;br /&gt;         ko.applyBindings&amp;#40; this, element &amp;#41;&amp;#59;&lt;br /&gt;     &amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;But there are two alternative problems with this approach&amp;#58; it will either &amp;#40;a&amp;#41; introduce an undesirable &amp;#34;flickering&amp;#34; effect as components load and show themselves one by one, or &amp;#40;b&amp;#41; create a ripple effect forcing me to make my whole program asynchronous, which would seriously damage the whole point of using AMD loader in the first place and make the code a lot less maintainable, not to mention the obvious difficulties of combining Knockout-style data bindings with async architecture.&lt;br /&gt;&lt;br /&gt;I want the &amp;#34;clean&amp;#34; solution, that is __loading my whole module dependency graph as a single logical operation__.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve also tried experimenting with the module import syntax itself to put this ugly business away into a function or something, but no luck&amp;#58; the TypeScript spec explicitly states that module id should be a string literal, no way around it.&lt;br /&gt;&lt;br /&gt;So a possible solution I can envision could be something like this&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;     &amp;#47;&amp;#47; fragment &amp;#40;4&amp;#41;&lt;br /&gt;     import template &amp;#61; content&amp;#40; &amp;#39;text&amp;#33;.&amp;#47;Templates&amp;#47;Template.html&amp;#39; &amp;#41;&amp;#58; string&amp;#59;&lt;br /&gt;&lt;br /&gt;    &amp;#47;&amp;#47; and later&amp;#58;&lt;br /&gt;    &amp;#36;&amp;#40;element&amp;#41;.html&amp;#40; template &amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;which would generate JS code in exactly the same way it does now&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;     &amp;#47;&amp;#47; fragment &amp;#40;5&amp;#41;&lt;br /&gt;     require&amp;#40;&amp;#91;&amp;#34;require&amp;#34;, &amp;#34;exports&amp;#34;, &amp;#34;text&amp;#33;.&amp;#47;Templates&amp;#47;Template.html&amp;#34;&amp;#93;, function&amp;#40;require, exports, __template__&amp;#41; &amp;#123;&lt;br /&gt;         var template &amp;#61; __template__&amp;#59;&lt;br /&gt;         &lt;br /&gt;         &amp;#47;&amp;#47; and later&amp;#58;&lt;br /&gt;         &amp;#36;&amp;#40;element&amp;#41;.html&amp;#40; template &amp;#41;&amp;#59;&lt;br /&gt;     &amp;#125;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;That is, no code generator changes necessary.&lt;br /&gt;Comments: Oh, missed that somehow.&amp;#10;Well, if I need to specify it in two places anyway, that doesn&amp;#39;t do any good, I&amp;#39;m afraid &amp;#58;-&amp;#40;&amp;#10;&amp;#10;Thank you for pointing out, though.</description><author>fsoikin</author><pubDate>Fri, 17 May 2013 14:15:53 GMT</pubDate><guid isPermaLink="false">Commented Feature: Support non-code AMD modules [1046] 20130517021553P</guid></item><item><title>Commented Unassigned: Compilation with --out to only add files that are referenced in the code [1050]</title><link>http://typescript.codeplex.com/workitem/1050</link><description>In some languages &amp;#40;e.g. ActionScript3 where a lot of the new typescript devs are coming from&amp;#41; imports are the equivalent of typescripts &amp;#47;&amp;#47;&amp;#47;&amp;#60;reference path&amp;#61;&amp;#39;typescript.ts&amp;#39; &amp;#47;&amp;#62; references. &lt;br /&gt;The --out parameter ist the equivalent of an swf compilation &amp;#40;put everything in one file&amp;#41;&lt;br /&gt;&lt;br /&gt;One major advantage of the AS3 Compiler is, that it knows which classes are really used and only include these classes&amp;#47;files into the final package. It would be great if typescript had the same capabilities as i would make writing typescript for the browser a lot easier. &lt;br /&gt;Comments: It would also be good if Typescript could put the referenced files in the right &amp;#34;order&amp;#34; as parent classes must be defined prior the child classes in Typescript</description><author>TobiasHei</author><pubDate>Fri, 17 May 2013 10:35:35 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Compilation with --out to only add files that are referenced in the code [1050] 20130517103535A</guid></item></channel></rss>