Skip to content

Commit

Permalink
nit: remove comments regarding error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
collin5 committed Nov 9, 2018
1 parent 40a77c0 commit 19a4074
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/cases/compiler/noImplicitAnyStringIndexerOnObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,16 @@
var a = {}["hello"];
var b: string = { '': 'foo' }[''];

// Should give suggestion 'c.get'
var c = {
get: (key: string) => 'foobar'
};
c['hello'];

// Should give suggestion 'd.set'
var d = {
set: (key: string) => 'foobar'
};
d['hello'];

// Should give suggestion 'e.get or e.set'
var e = {
set: (key: string) => 'foobar',
get: (key: string) => 'foobar'
Expand Down

0 comments on commit 19a4074

Please sign in to comment.