shapeless-guide
shapeless-guide copied to clipboard
var x = 42.narrow doesn't compile in scala 2.12
This line just blows up the compiler in scala 2.12.x. In https://github.com/underscoreio/shapeless-guide/blob/master/src/pages/labelled-generic/literal-types.md . Issue here: https://github.com/milessabin/shapeless/issues/674 . Perhaps just a note not to try it with scala 2.12.x?
I should also point out, it's fine with val. But that obviously ruins the point that you make afterwards about not being able to change it.