Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test that declares conflicting method first
  • Loading branch information
sandersn committed Aug 3, 2016
commit 72057500b5220b28e637a6a31acb86f4f4273393
16 changes: 14 additions & 2 deletions tests/cases/conformance/salsa/multipleDeclarations.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -23,3 +21,17 @@ 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();