// @filename: input.js
// @out: output.js
// @allowJs: true
function C() {
    this.m = null;
}
C.prototype.m = function() {
    this.nothing();
}
class X {
    constructor() {
        this.m = this.m.bind(this);
        this.mistake = 'frankly, complete nonsense';
    }
    m() {
    }
    mistake() {
    }
}
let x = new X();
X.prototype.mistake = false;
x.m();
x.mistake;
class Y {
    mistake() {
    }
    m() {
    }
    constructor() {
        this.m = this.m.bind(this);
        this.mistake = 'even more nonsense';
    }
}
Y.prototype.mistake = true;
let y = new Y();
y.m();
y.mistake();

// @filename: input.js
// @out: output.js
// @allowJs: true

function C() {
    this.m = null;
}
C.prototype.m = function() {
    this.nothing();
}

class X {
    constructor() {
        this.m = this.m.bind(this);
        this.mistake = 'frankly, complete nonsense';
    }
    m() {
    }
    mistake() {
    }
}
let x = new X();
X.prototype.mistake = false;
x.m();
x.mistake;

--- 
+++ 
@@ -1,14 +1,12 @@
 // @filename: input.js
 // @out: output.js
 // @allowJs: true
-
 function C() {
     this.m = null;
 }
 C.prototype.m = function() {
     this.nothing();
 }
-
 class X {
     constructor() {
         this.m = this.m.bind(this);
@@ -23,3 +21,17 @@
 X.prototype.mistake = false;
 x.m();
 x.mistake;
+class Y {
+    mistake() {
+    }
+    m() {
+    }
+    constructor() {
+        this.m = this.m.bind(this);
+        this.mistake = 'even more nonsense';
+    }
+}
+Y.prototype.mistake = true;
+let y = new Y();
+y.m();
+y.mistake();
Test that declares conflicting method first
