This channel is now CLOSED. Please use gitter.im/scala/scala for user questions and gitter.im/scala/contributors for compiler development.
object Component { case class Props(...); val component = ... }; Component.component(Component.Props(...)))
and it would be great to automatically generate an apply method matching the signature of Props that passes them to the component
@smarter
might be better to not have something that have something which people are unhappy with: scala/bug#10766
The subtype operator, if addressed on its own, is implementable without global state / unavoidable concurrency-problems. Unfortunately that might not be enough for hypothetical corporations with legacy scala-reflect code, but that would be enough for my company… And we’re actually implementing it right now – probably won’t copy the entire Scala typer and limit the checks to the common kinds of the types that actually appear in our codebase.
@alexander-myltsev you're probably running into this bug: lampepfl/dotty#5936
@smarter ok, thanks
is that another compiler bug?
[error] (Compile / compileIncremental) java.lang.AssertionError: assertion failed: denotation module class annotation invalid in run 1. ValidFor: Period(1..5, run = 2)
[error] Total time: 0 s, completed Jul 24, 2019 10:33:32 PM