Skip to content

Commit

Permalink
Remove package objects (#244)
Browse files Browse the repository at this point in the history
- Deprecated in scala 3
  • Loading branch information
petern-sc authored Oct 9, 2023
1 parent b29847c commit 0992faa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
12 changes: 4 additions & 8 deletions src/main/scala/introcourse/level03/package.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package introcourse
package introcourse.level03

package object level03 {

case class Person(name: String, age: Int)

enum TrafficLight {
case Red, Yellow, Green
}
case class Person(name: String, age: Int)

enum TrafficLight {
case Red, Yellow, Green
}
12 changes: 4 additions & 8 deletions src/main/scala/introcourse/level04/package.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package introcourse
package introcourse.level04

package object level04 {

case class Person(name: String, age: Int)

enum TrafficLight {
case Red, Yellow, Green
}
case class Person(name: String, age: Int)

enum TrafficLight {
case Red, Yellow, Green
}
8 changes: 2 additions & 6 deletions src/main/scala/introcourse/level05/package.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
package introcourse
package introcourse.level05

package object level05 {

case class Person(name: String, age: Int)

}
case class Person(name: String, age: Int)

0 comments on commit 0992faa

Please sign in to comment.