8000 Update 2014-04-08-language-pitfalls.md by immediatus · Pull Request #336 · scala/docs.scala-lang · GitHub
[go: up one dir, main page]

Skip to content

Update 2014-04-08-language-pitfalls.md #336

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

Merged
merged 1 commit into from
Jul 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update 2014-04-08-language-pitfalls.md
solution baseon on early definitions added
  • Loading branch information
immediatus committed Apr 17, 2014
commit 2bb91970734848108fbc9ec48a20207f6b90e98d
4 changes: 2 additions & 2 deletions overviews/core/_posts/2014-04-08-language-pitfalls.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ Be aware of the order or use lazy vals or defs.

**Example 2 solution:**

// no solution for safely overriding a concrete val in parent class.
// Use a def in the parent class as in Example 3
// early definitions (SRS 5.1.6)
new { override val x = 6 } with Foo

**Example 3:**

Expand Down
0