Z
Z
Zerstoren2013-02-28 11:54:45
JavaScript
Zerstoren, 2013-02-28 11:54:45

Pycharm. javascript. Assigned expression type is not assignable to type Function?

I have been using Paycharm for the 2nd day (I want to finally get on the IDE because of the debug tools and other lovely tools), but I constantly get this error.

Assigned expression type {getParam: Function} is not assignable to type Function


It appears when I try to extend a function through a prototype using code like this

(function(self, signConfirm) {<br>
<br>
signConfirm = function() {<br>
    self = this;<br>
};<br>
<br>
// И все содержимое prototype постоянно подчеркнуто серой линией и при наведении<br>
// мыши на нее, всплывает текстовая подсказка, которая меня уже достала до белого коленя.<br>
signConfirm.prototype = {<br>
    getParam: function() {<br>
            <br>
    },<br>
};<br>
<br>
someGlobalName.signConfirm = new signConfirm();<br>
<br>
})();<br>


Please tell me how to get rid of this crap. There is nothing on the Internet about this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
philipto, 2013-03-01
@Zerstoren

You found a bug, we will fix it in the next update, but for now - as a temporary measure - you can disable all TypeCheck in Settings | Inspections | JavaScript | general | Type mismatch problem
Thank you for finding and telling!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question