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: 195
Registered: October 2009
Location: UK
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
Epsilon Committer
Research Assistant
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: 1528
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.

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: 472
Registered: January 2010
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: Sat May 26 00:03:54 GMT 2018

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

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

Back to the top