ngs-doo / revenj

DSL Platform compatible backend

Home Page:https://dsl-platform.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DSL with implements and specification does not compile

Kobus-Smit opened this issue · comments

This DSL does not compile: (Compiler: 2.1.6723.35354)

module InterfaceTest {

root Person {
	implements c# 'InterfaceTest.IPerson';
	string Name;
	specification FindByName 'it => it.Name == name' {	string name;  }
}

}
Internal compiler error. Error compiling object model: Error during compilation: 
Error: The type or namespace name 'IPerson' does not exist in the namespace 'InterfaceTest' (are you missing an assembly reference?) in global::InterfaceTest.Person near: IPerson

It does compile when commenting the implements line or commenting the specification line or unchecking Postgres migration

d49bbbca-8a82-4fe4-867c-f3a8e1b9fe47

Test project: https://github.com/Kobus-Smit/revenj-examples/tree/master/InterfaceAndSpecification

commented

Tnx for the bug report.
I've uploaded a new build, I think it should fix your problem (didn't actually test it)

Fixed, thanks @zapov