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 12:34 Go to next message
Horacio Hoyos is currently offline Horacio Hoyos
Messages: 146
Registered: October 2009
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
EngD Student
University Of York
Re: No vaiable alternative at input 'default' [message #886798 is a reply to message #886792] Fri, 15 June 2012 12:45 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 702
Registered: July 2009
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 03:38 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-Dominguez
Messages: 304
Registered: January 2010
Senior Member
Fixed Smile. Thanks, Horacio!
Previous Topic:ETL: protected regions not working
Next Topic:[EUnit] - Some thoughts and considerations about mode testing with EUnit
Goto Forum:
  


Current Time: Thu Apr 24 02:02:52 EDT 2014

Powered by FUDForum. Page generated in 0.01713 seconds