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
6666that to get reflection-based structural access one now has to add an
6767import:
6868
69- import scala.relect .Selectable.reflectiveSelectable
69+ import scala.reflect .Selectable.reflectiveSelectable
7070
7171On the other hand, the previously required language feature import of
7272` 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
9292structural type ` Person ` :
9393
9494 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]
9696
9797Then ` person.name ` will have static type ` String ` , and will produce ` "Emma" ` as result.
9898
@@ -130,4 +130,4 @@ differences.
130130
131131### Reference
132132
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