| [#522] | project: compiler | priority: medium | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Lex | Martin | fixed | 2006-01-27 18:41:37.0 | |
| subject | clash between class and imported method with same name | |||
| code |
package imptwice
class foo(s: String);
object Util {
def foo(s: String) = new foo(s)
}
import imptwice.Util._
object User {
def main(args: Array[String]) = {
foo("blah")
}
}
|
|||
| what happened | The first time you compile, this code is fine. The second time, it gives you:
|
|||
| what expected | It should compile fine. | |||
| [back to overview] | ||||
| Lex edited on 2006-01-27 18:41:53.0 |
| Lex edited on 2006-01-27 18:42:09.0 |
| Martin edited on 2006-01-28 19:58:12.0 |