If value was defined in inherited class as protected[scope], "Not found: value x" error occurs.
To reproduce it, first create Foo.scala
and then Bar.scala:
Eclipse telling us, there is an error (in fact it isn't an error). After cleaning a project this error disappears.
To reproduce it, first create Foo.scala
package a
class Foo {
protected[Foo] var x = 0
}
and then Bar.scala:
package b
class Bar extends a.Foo {
println(x) // Error: Not found: value x
}
Eclipse telling us, there is an error (in fact it isn't an error). After cleaning a project this error disappears.
Leave a comment
on 2011-09-07 10:53 *
By Mirco Dotta
Assigned to changed from login to skyluc
Milestone set to 2.0
Priority changed from Normal (3) to High (2)
on 2011-09-20 12:28 *
By skyluc
Priority changed from High (2) to Low (4)
Status changed from New to Accepted
This issue is caused by a problem in the scala compiler. A bug has been filed against it: https://issues.scala-lang.org/browse/SI-5013
on 2011-11-11 08:40 *
By Mirco Dotta
Assigned to changed from odersky to Mirco Dotta
Status changed from Accepted to Test
This one should be fixed in the 2.0.0-RC01. Please, don't close the ticket, as it would be good to have a PC test to avoid regressions.
We should check that this is fixed (and maybe add a test).
on 2013-01-09 10:34 *
By huitseeker
Version changed from 2.0.0-beta09-29 to 2.0.0-final-28
Eclipse version changed from Indigo to Indigo - Eclipse 3.7
Assigned to changed from Mirco Dotta to huitseeker
on 2013-02-19 09:01 *
By huitseeker
Fixed in 2137.
on 2013-06-07 12:48 *
By Iulian Dragos
Fixed in version changed from 3.0.0-RC1 to -none-
Milestone changed from Current to Helium
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|