Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

1

Found in

5.5.0b5

Issue ID

837614

Regression

No

Object can't be cast as implemented interface

Scripting

-

Steps to reproduce:

1. Open attached project "837614repro.zip"
2. Open scene "test"
3. Run it and look at console
4. Notice line "abstractedStack is IItemStack<IStackableItem>: False". This means that abstrackStack can't be cast as IItemStack<IStackableItem>.

Problem is that abstrackStack holds object of MockItemStack<MockStackableItem> which implements IItemStack<IStackableItem> interface so cast as ItemStack should be available.

Reproduced with: 5.3.6p6, 5.4.1p4, 5.5.0b6

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.