Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invisible forward reference when using default arguments #2489

Closed
scabug opened this issue Oct 19, 2009 · 4 comments
Closed

invisible forward reference when using default arguments #2489

scabug opened this issue Oct 19, 2009 · 4 comments
Assignees

Comments

@scabug
Copy link

scabug commented Oct 19, 2009

scala> class A { def foo { def bar(a: Int = 1) = a; bar(); val u = 0 } }
<console>:4: error: forward reference extends over definition of value u
       class A { def foo { def bar(a: Int = 1) = a; bar(); val u = 0 } }
                                                    ^
@scabug
Copy link
Author

scabug commented Oct 19, 2009

Imported From: https://issues.scala-lang.org/browse/SI-2489?orig=1
Reporter: @lrytz

@scabug
Copy link
Author

scabug commented Nov 12, 2009

@lrytz said:
fixed in r19561

@scabug
Copy link
Author

scabug commented Nov 26, 2009

@lrytz said:
improved fix in r19894

@scabug
Copy link
Author

scabug commented Dec 3, 2010

@lrytz said:
(In e1a0866ce7) close #4036, fix #2489. synthetic members (companion objects, default getters) are emitted next to their correspondant. review by extempore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants