Skip to content

Commit

Permalink
Merge pull request scala#5941 from estsauver/spec_fix
Browse files Browse the repository at this point in the history
Fix incorrect mathjax rendering in spec section 2
  • Loading branch information
adriaanm authored Jun 13, 2017
2 parents 4956000 + 239940a commit 3972bae
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/02-identifiers-names-and-scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,24 +105,24 @@ precedences between them.
package p { // `X' bound by package clause
import Console._ // `println' bound by wildcard import
object Y {
println(s"L4: $X") // `X' refers to `p.X' here
println(s"L4: \$X") // `X' refers to `p.X' here
locally {
import q._ // `X' bound by wildcard import
println(s"L7: $X") // `X' refers to `q.X' here
println(s"L7: \$X") // `X' refers to `q.X' here
import X._ // `x' and `y' bound by wildcard import
println(s"L9: $x") // `x' refers to `q.X.x' here
println(s"L9: \$x") // `x' refers to `q.X.x' here
locally {
val x = 3 // `x' bound by local definition
println(s"L12: $x") // `x' refers to constant `3' here
println(s"L12: \$x") // `x' refers to constant `3' here
locally {
import q.X._ // `x' and `y' bound by wildcard import
// println(s"L15: $x") // reference to `x' is ambiguous here
// println(s"L15: \$x") // reference to `x' is ambiguous here
import X.y // `y' bound by explicit import
println(s"L17: $y") // `y' refers to `q.X.y' here
println(s"L17: \$y") // `y' refers to `q.X.y' here
locally {
val x = "abc" // `x' bound by local definition
import p.X._ // `x' and `y' bound by wildcard import
// println(s"L21: $y") // reference to `y' is ambiguous here
println(s"L22: $x") // `x' refers to string "abc" here
// println(s"L21: \$y") // reference to `y' is ambiguous here
println(s"L22: \$x") // `x' refers to string "abc" here
}}}}}}
```

0 comments on commit 3972bae

Please sign in to comment.