mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 02:21:30 -05:00
Add a better test for jsdoc index signatures.
The test case shows that the errorenous error no longer appears.
This commit is contained in:
@@ -8,3 +8,8 @@ var o1;
|
||||
var o2;
|
||||
/** @type {Object.<boolean, string>} */
|
||||
var o3;
|
||||
/** @param {Object.<string, boolean>} o */
|
||||
function f(o) {
|
||||
o.foo = 1; // error
|
||||
o.bar = false; // ok
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user