Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

[js code hints] parameter type later becomes variable name when passing object as param to a function #3838

Open
jodyzhang opened this issue May 15, 2013 · 2 comments

Comments

@jodyzhang
Copy link
Contributor

  1. copy/paste following code snippet
var D1 = { propD : 1 },
    D2 = { propD : 2 };

function funE(paramE1, paramE2) {
    'use strict';
}
funE(D1, D2);
funE(

  1. check code hint for funE(, now it returns function type is: funE(paramE1: D1, paramE2: D2)

Expect: it is either ? or Object? for paramE1, paramE2?

@ghost ghost assigned eztierney May 20, 2013
@pthiess
Copy link
Contributor

pthiess commented May 20, 2013

Reviewed - to @eztierney

@redmunds
Copy link
Contributor

Was assigned to tern team, so marking "Needs Review".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants