Skip to content

Commit

Permalink
remove comments regarding error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
collin5 committed Apr 29, 2019
1 parent 563e5af commit 013c5bb
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 013c5bb

Please sign in to comment.