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: 160
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 16:45 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1067
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.

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: 360
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 Nov 26 21:35:13 GMT 2015

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

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