Copy link to clipboard
Copied
Hi
When I declare a variable such as
var whatever:ISomeInterface;
then FB does not offer functions declared in type Object, such as hasOwnProperty, for that variable.
I have to cast to Object. What's the point of this? Can interfaces be implemented by something else than Objects?
Copy link to clipboard
Copied
The Compiler itself does not allow you to access hasOwnProperty of Object like that. Only when you implement the interface to a class, then that class becomes an "Object".
I have logged a bug to track this problem. https://bugs.adobe.com/jira/browse/FB-27683
-Radhakrishna