incubator-etch-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Hankin <>
Subject RE: Mixin not working
Date Mon, 12 Oct 2009 18:22:17 GMT
Contents of FooService.etch:

	service FooService {
		struct Test1 (
			string hello

Contents of BarService.etch:

	Service BarService {
		mixin FooService
		struct Test2 (
			string world
		) extends Test1

The resulting, when setting the super type of the Test2 class,
refers to _mt_foo_FooService_Test1, which it cannot resolve, since this is declared in a file
in a different package.

-----Original Message-----
From: scott comer [] 
Sent: Saturday, October 10, 2009 6:38 AM
Subject: Re: Mixin not working

sorry you're having trouble, keith. i have no knowledge of such a 
problem. can you post your etch files, or
perhaps a trimmed down example which demonstrates the problem? i'll look 
into it.

scott out

Keith Hankin wrote:
> I have one service that uses another as a mixin. The service that uses the mixin defines
structs that extend structs in the mixin. However the generated ValueFactory does not compile,
as it is missing all of the public static declarations of the types that are inherited from
the mixin. Is this a known problem?

View raw message