summaryrefslogtreecommitdiff
path: root/scalalib/test/resources/scalafmt/core/src/Person.scala
blob: b296cf85fca6c2d305709c24f770f9c5efafe0be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
object Person {
  def fromString(s: String): Person = {
    val Array(name, age) = s.split(":")
    Person(
      name,
      age.toInt)
  }
}



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