mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-08 18:11:45 -06:00
Test cases for trailing comments for class and constructor
This commit is contained in:
parent
f1df7589ff
commit
a9092c331d
@ -2,21 +2,21 @@
|
||||
|
||||
/** This is class c2 without constuctor*/
|
||||
class c2 {
|
||||
}
|
||||
} // trailing comment1
|
||||
var i2 = new c2();
|
||||
var i2_c = c2;
|
||||
class c3 {
|
||||
/** Constructor comment*/
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
} // trailing comment of constructor
|
||||
} /* trailing comment 2 */
|
||||
var i3 = new c3();
|
||||
var i3_c = c3;
|
||||
/** Class comment*/
|
||||
class c4 {
|
||||
/** Constructor comment*/
|
||||
constructor() {
|
||||
}
|
||||
} /* trailing comment of constructor 2*/
|
||||
}
|
||||
var i4 = new c4();
|
||||
var i4_c = c4;
|
||||
@ -71,22 +71,22 @@ var c2 = (function () {
|
||||
function c2() {
|
||||
}
|
||||
return c2;
|
||||
})();
|
||||
})(); // trailing comment1
|
||||
var i2 = new c2();
|
||||
var i2_c = c2;
|
||||
var c3 = (function () {
|
||||
/** Constructor comment*/
|
||||
function c3() {
|
||||
}
|
||||
} // trailing comment of constructor
|
||||
return c3;
|
||||
})();
|
||||
})(); /* trailing comment 2 */
|
||||
var i3 = new c3();
|
||||
var i3_c = c3;
|
||||
/** Class comment*/
|
||||
var c4 = (function () {
|
||||
/** Constructor comment*/
|
||||
function c4() {
|
||||
}
|
||||
} /* trailing comment of constructor 2*/
|
||||
return c4;
|
||||
})();
|
||||
var i4 = new c4();
|
||||
|
||||
@ -4,21 +4,21 @@
|
||||
|
||||
/** This is class c2 without constuctor*/
|
||||
class c2 {
|
||||
}
|
||||
} // trailing comment1
|
||||
var i2 = new c2();
|
||||
var i2_c = c2;
|
||||
class c3 {
|
||||
/** Constructor comment*/
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
} // trailing comment of constructor
|
||||
} /* trailing comment 2 */
|
||||
var i3 = new c3();
|
||||
var i3_c = c3;
|
||||
/** Class comment*/
|
||||
class c4 {
|
||||
/** Constructor comment*/
|
||||
constructor() {
|
||||
}
|
||||
} /* trailing comment of constructor 2*/
|
||||
}
|
||||
var i4 = new c4();
|
||||
var i4_c = c4;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user