Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » interface default method: how to implement
interface default method: how to implement [message #1787424] Fri, 25 May 2018 08:28
Christian Eugster is currently offline Christian EugsterFriend
Messages: 175
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
Hi, I try to implement a default method in an interface as follows:

interface Foo
{
   def asString(String value)
   {
      if (value === null) "" else value
   }
}


The editor complains, that "Abstract methods do not specify a body". I followed the example in https://www.eclipse.org/xtend/documentation/202_xtend_classes_members.html#interfaces, but without success.
Thanks for any help!
Previous Topic:inconsistency of case sensitivity in xtext suffix
Next Topic:interface default method: how to implement
Goto Forum:
  


Current Time: Fri Nov 16 14:06:51 GMT 2018

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

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

Back to the top