Burak edited on 2003-09-23 18:26:56.0
|
change priority
|
Lex edited on 2006-03-28 13:49:00.0
|
The current error message is better:
bug122.scala:2 error: recursive value v needs type
val List(v:int,2) = List(2,v:int);
^
bug122.scala:3 error: recursive value a needs type
val Pair(a:int,b:int) = Pair(1,a);
^
two errors found
It would be nicer to report this as a circular val definition....
|
Martin edited on 2006-05-28 14:46:16.0
|
We now get:
bug122.scala:2 error: recursive value v needs type
val List(v:int,2) = List(2,v:int);
^
bug122.scala:3 error: recursive value a needs type
val Pair(a:int,b:int) = Pair(1,a);
^
two errors found
|
Martin edited on 2006-05-31 11:39:33.0
|
We now accept this example.
|