File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/docs/reference/changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ current implementation of structural types. The main difference is
66
66
that to get reflection-based structural access one now has to add an
67
67
import:
68
68
69
- import scala.relect .Selectable.reflectiveSelectable
69
+ import scala.reflect .Selectable.reflectiveSelectable
70
70
71
71
On the other hand, the previously required language feature import of
72
72
` reflectiveCalls ` is now redundant and is therefore dropped.
@@ -92,7 +92,7 @@ For illustration, let's define a record value and cast it to a
92
92
structural type ` Person ` :
93
93
94
94
type Person = Record { val name: String; val age: Int }
95
- val person = Record(( "name" -> "Emma", "age" -> 42) ).asInstanceOf[Person]
95
+ val person = Record("name" -> "Emma", "age" -> 42).asInstanceOf[Person]
96
96
97
97
Then ` person.name ` will have static type ` String ` , and will produce ` "Emma" ` as result.
98
98
@@ -130,4 +130,4 @@ differences.
130
130
131
131
### Reference
132
132
133
- For more info, see [ Issue #1886 ] ( https://github.com/lampepfl/dotty/issues/1886 ) .
133
+ For more info, see [ Issue #1886 ] ( https://github.com/lampepfl/dotty/issues/1886 ) .
You can’t perform that action at this time.
0 commit comments