You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scala version: 2.13.12
infinite recursion in @specialized methods is nothing new, but, everything I saw so far involved multiple definitions of a method, and a call to super. This one is on new level for me.
Exception in thread "main" java.lang.StackOverflowError
at IInt.hehe$mcI$sp(Playground.scala:23)
at IInt.hehe$mcI$sp$(Playground.scala:23)
at IntSpec.hehe$mcI$sp(Playground.scala:29)
at Spec$mcI$sp.hehe(Playground.scala:27)
at IInt.hehe$mcI$sp(Playground.scala:23)
at IInt.hehe$mcI$sp$(Playground.scala:23)
at IntSpec.hehe$mcI$sp(Playground.scala:29)
at Spec$mcI$sp.hehe(Playground.scala:27)
at IInt.hehe$mcI$sp(Playground.scala:23)
at IInt.hehe$mcI$sp$(Playground.scala:23)
at IntSpec.hehe$mcI$sp(Playground.scala:29)
Thankfully, the error goes away with removing the declaration in IInt, which doesn't really help, when I.hehe is already specialized.