We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c01efb commit 7205750Copy full SHA for 7205750
tests/cases/conformance/salsa/multipleDeclarations.ts
@@ -1,14 +1,12 @@
1
// @filename: input.js
2
// @out: output.js
3
// @allowJs: true
4
-
5
function C() {
6
this.m = null;
7
}
8
C.prototype.m = function() {
9
this.nothing();
10
11
12
class X {
13
constructor() {
14
this.m = this.m.bind(this);
@@ -23,3 +21,17 @@ let x = new X();
23
21
X.prototype.mistake = false;
24
22
x.m();
25
x.mistake;
+class Y {
+ mistake() {
26
+ }
27
+ m() {
28
29
+ constructor() {
30
+ this.m = this.m.bind(this);
31
+ this.mistake = 'even more nonsense';
32
33
+}
34
+Y.prototype.mistake = true;
35
+let y = new Y();
36
+y.m();
37
+y.mistake();
0 commit comments