An error when emitting comments to output

Topics: General
Nov 20, 2012 at 3:44 AM
Edited Nov 20, 2012 at 3:46 AM

the following code emits comments in wrong place:

 

/**
*   Some class comment...
*/
export class MyClass {
   /**
   *   Some method comment...
   */
   public static doSomething(){
   }
}

 

output:

 

/**
*   Some class comment...
*/
var MyClass = (function () {
    function MyClass() { }
    MyClass.doSomething = /**
        *   Some method comment...
        */
         function doSomething() {
         }
         return MyClass;
 })();

This is a valid JavaScript code, but... should the "Some method comment..." be there?

Coordinator
Nov 20, 2012 at 3:43 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.