Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was 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

Description

@jodyzhang
  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?

Activity

  1. pthiess commented on May 20, 2013

    @pthiess
    Contributor

    Reviewed - to @eztierney

  2. redmunds commented on Mar 17, 2014

    @redmunds
    Contributor

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

  3. self-assigned this
    on Apr 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions