lf-lang / lingua-franca

Intuitive concurrent programming in any language
https://www.lf-lang.org
Other
234 stars 62 forks source link

Target property not imported if we extend the reported reactor #2286

Closed erlingrj closed 3 months ago

erlingrj commented 4 months ago

If the imported reactor is instantiated it works as expected, but if it is extended it does not.

Example:

In ImportMe.lf

target C {
  cmake-include: "Include.cmake"
}
reactor R {
  reaction(startup) {= =}
}
target C 
import R from "./ImportMe.lf"
reactor R2 extends R { }
main reactor {
  r = new R2()
}