| [#1099] | project: compiler | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Nikolay | Martin | noise | 2007-05-11 11:29:47.0 | |
| subject | [contrib #462] Inner classes when self alias is typed | |||
| code |
Does not compile:
class A { self: ScalaObject =>
class B {}
def f: B = new B
}
Does compile (no self type):
class A { self =>
class B {}
def f: B = new B
}
|
|||
| what happened | error: not found: type B
def f: B = new B
^
|
|||
| what expected | Succesful compilation | |||
| [back to overview] | ||||
| Nikolay edited on 2007-05-11 11:34:08.0 |
| Martin edited on 2007-05-14 20:48:01.0 |
| It does not compile because self is a ScalaObject, so there's no B member to access. |