Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » No vaiable alternative at input 'default'(On a switch statement)
icon5.gif  No vaiable alternative at input 'default' [message #886792] Fri, 15 June 2012 16:34 Go to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 242
Registered: October 2009
Location: Mexico
Senior Member

I have this operation
operation String isSignalType() : Boolean
{
	var res = new Boolean;
	switch (self) {
		case "Boolean" : continue;
		case "Logic" : res= true;
		case default : res= false;
	}
	return res;
}


and get the topic title error. Any ideas?


Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
Re: No vaiable alternative at input 'default' [message #886798 is a reply to message #886792] Fri, 15 June 2012 16:45 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi Horacio,

It should be

default : res= false;

instead of

case default : res= false;

We'll need to correct the book.

Cheers,
Dimitris
Re: No vaiable alternative at input 'default' [message #889890 is a reply to message #886798] Wed, 20 June 2012 07:38 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

Fixed Smile. Thanks, Horacio!
Previous Topic:Building a graphical editor to compose and visualise Epsilon Workflows
Next Topic:[EUnit] - Some thoughts and considerations about mode testing with EUnit
Goto Forum:
  


Current Time: Fri Apr 26 22:06:38 GMT 2024

Powered by FUDForum. Page generated in 0.03290 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top