Aladdin - Scala Bugtracking
[#486] project: compiler priority: low category: bug
submitter assigned to status date submitted
Burak _ _ 2005-11-14 08:47:34.0
subject [inconsistency] boot/scalac and main/scalac differ in
code
change the return type in 
sources/scala/collection/mutable/SynchronizedMap.scala to `super.type' and run make

<pre>
override def clone(): super.type = synchronized {
        super.clone();
}
</pre>
what happened
no error (the library is compiled with boot/scalac), but if you try to compile with main/scalac (also if you *us\
e* SynchronizedMap as a mixin), you get the following error:

/localhome/buraq/scala/sources/scala/collection/mutable/SynchronizedMap.scala:113: identifier expected but 'type\
' found.
    override def clone(): super.type = synchronized {
                                ^
one error found
what expected consistent behavior of the two scalac's
[back to overview]
Changes of this bug report