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

@jodyzhang

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions