Closed Russoul closed 6 years ago
@Russoul I cannot reproduce this. Could you provide a little more information about what version of gestalt are you using?
@liufengyun what I did(checked it again now): 1)cleaned ivy2 cache 2)git clone https://github.com/liufengyun/gestalt 3)cd gestalt 4)added
trait Addable[@specialized T]{
def plus(a : T, b : T) : T
}
error:
...
[info] exception occurred while typechecking /home/russoul/project/dotty-macros/gestalt/macros/src/main/scala/gestalt/macros/DefMacros.scala
[info] exception occurred while compiling /home/russoul/project/dotty-macros/gestalt/macros/src/main/scala/gestalt/macros/DefMacros.scala
java.lang.AssertionError: assertion failed: no symbol for @specialized() T
...
@liufengyun Have you managed to reproduce it ? Are there workarounds ?
@Russoul thanks for the detailed information, I was able to reproduce. It seems to be a problem with library binary version mismatch. I'll propose a fix ASAP.
@Russoul I've fixed a problem with the modified Dotty compiler and republished it (updated snapshot). If you clean your local repo and compile again, it should work.
@liufengyun Cool, thanks :)
@Russoul You are welcome. This library is still evolving, feel free to report any more problems :)
dotty code:
compiler error: