Set value of field of interface type to be a class
Issue #208
invalid
I cannot set the value of an interface to be an implementing class.
The particular problem is: MinuetoWindow window = new MinuetoFrame(...)
Comments (5)
-
reporter -
reporter (so it may be a good idea to keep this issue open to correct the error in the appearance of the lifeline)
-
- attached Test.ram
Example model that shows this can be achieved.
-
reporter - changed status to resolved
Resolving this issue to open up a related issue along a similar vein.
Creation and setting of the value of an interface to be the value of a class implementing class can be achieved.
-
- changed status to invalid
- Log in to comment
This can be achieved with a self referential statement.
Call the constructor of the desired type and set it to the value of the desired field.
The constructor call will appear to be calling the wrong type, but the generated source is correct.