Skip to content

In JS, this in object literals is untyped #11072

Closed
@waderyan

Description

@waderyan

From @ishuvalov on September 20, 2016 7:54

  • VSCode Version: Code 1.5.2 (66f37fd2a99eb9d628dd374d81d78835b410c39b, 2016-09-12T13:05:12.065Z)
  • OS Version: Darwin x64 15.6.0

Steps to Reproduce:

  1. Consider the following code:
(function(undefined) {
    MyView = Backbone.View.extend({
        secondFunc: function () {
            return;
        },

        mainFunc: function() {
            this.secondFunc()
        }
    });
})();
  1. The Goto Definition, Peek Definition and other IntelliSense features are not working for this.secondFunc() call.

Copied from original issue: microsoft/vscode#12306

Metadata

Metadata

Assignees

Labels

FixedA PR has been merged for this issueSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions