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: 200
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, 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: Mon Oct 03 05:26:53 GMT 2022

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

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

Back to the top