E041 Non Void Method Declared as Queued
[Previous]  [Next] 
|
User Manual [Previous]  [Next] E041 Non Void Method Declared as QueuedUmple semantic error generated when a class contains a non-void method declared as queuedThe queued keyword cannot be used on methods with a non-void return type. Declare the method as 'queued void' or 'void'. Example//Causes the error due to the return type of //method1 being Integer class A { queued Integer method1() { /* implementation */ } } Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears//No error is raised, as both methods //have a void return type class A { queued method1() { /* implementation */ } queued void method2() { /* implementation */ } } Load the above code into UmpleOnline |