Skip to content

Fix Documentation #3086

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 2 commits into from
Sep 12, 2017
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
6 changes: 3 additions & 3 deletions docs/docs/reference/changed/structural-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ current implementation of structural types. The main difference is
that to get reflection-based structural access one now has to add an
import:

import scala.relect.Selectable.reflectiveSelectable
import scala.reflect.Selectable.reflectiveSelectable

On the other hand, the previously required language feature import of
`reflectiveCalls` is now redundant and is therefore dropped.
Expand All @@ -92,7 +92,7 @@ For illustration, let's define a record value and cast it to a
structural type `Person`:

type Person = Record { val name: String; val age: Int }
val person = Record(("name" -> "Emma", "age" -> 42)).asInstanceOf[Person]
val person = Record("name" -> "Emma", "age" -> 42).asInstanceOf[Person]

Then `person.name` will have static type `String`, and will produce `"Emma"` as result.

Expand Down Expand Up @@ -130,4 +130,4 @@ differences.

### Reference

For more info, see [Issue #1886](https://github.com/lampepfl/dotty/issues/1886).
For more info, see [Issue #1886](https://github.com/lampepfl/dotty/issues/1886).