Skip to main content



      Home
Home » Modeling » TMF (Xtext) » interface default method: how to implement
interface default method: how to implement [message #1787424] Fri, 25 May 2018 04:28
Eclipse UserFriend
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 Jun 20 19:45:44 EDT 2025

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

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

Back to the top