File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
scala-2/progscala3/typesystem/selectable
scala/progscala3/hierarchy
test/scala/progscala3/contexts/accounting Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11// src/script/scala-2/progscala3/typesystem/selectable/Reflection.scala
22// Mentioned, but not shown in the book. This shows a Scala 2 alternative to
3- // src/script /scala/progscala3/typesystem/selectable/Selectable.scala
3+ // ... /scala/progscala3/typesystem/selectable/Selectable.scala
44// using structural typing.
55import scala .language .reflectiveCalls // Required import.
66trait Record { // Doesn't extend any other trait, like Scala 3's reflect.Selectable
Original file line number Diff line number Diff line change 1+ // src/script/scala/progscala3/hierarchy/Asserts.scala
12val n = 5
23assert(n > 0 , s " Must assign a positive number. $n given. " )
34
Original file line number Diff line number Diff line change 1- // src/test/scala/progscala3/contexts/NewImplicitConversionsSuite.scala
1+ // src/test/scala/progscala3/contexts/accounting/ NewImplicitConversionsSuite.scala
22package progscala3 .contexts .accounting
33import scala .language .implicitConversions
44import munit .*
You can’t perform that action at this time.
0 commit comments