Closed scabug closed 9 years ago
Imported From: https://issues.scala-lang.org/browse/SI-8463?orig=1 Reporter: @cvogt Affected Versions: 2.10.4
@retronym said: Dup of #8219. I'll add this test case to that ticket.
I tried to fix that for 2.11.0 (in https://github.com/scala/scala/pull/3460) but ran into #8230.
@retronym said: Oh, I just realised that #8219 is closed. I'll reopen this ticket instead.
@retronym said: This fixes the unpositioned part: https://github.com/scala/scala/pull/3670
But the error message is still suboptimal.
@cvogt said: awesome :D!
@gkossakowski said: The 2.11.2 is out so I'm rescheduling the issue for 2.11.3.
@retronym said: Updating fix-by version to 2.11.5.
@retronym said: We forgot to close this ticket when the fix was merged into 2.11.1
This seems related to: #8219
Reproduce code:
Expected result: Type error with line numer.
Actual result:
It seems to be related to using a type alias and a long. Those all produce type errors with line numbers:
Another code sample that produces the same error message without line number: