Skip to content

Commit

Permalink
i_introduction/_6_Data_Classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Lotz committed Dec 26, 2017
1 parent 1331c05 commit d7cf2cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/i_introduction/_6_Data_Classes/n06DataClasses.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ fun todoTask6(): Nothing = TODO(
references = { JavaCode6.Person("Alice", 29) }
)

class Person
data class Person constructor(val name: String, val age: Int)

fun task6(): List<Person> {
todoTask6()
return listOf(/*Person("Alice", 29), Person("Bob", 31)*/)
return listOf(Person("Alice", 29), Person("Bob", 31))
}

0 comments on commit d7cf2cc

Please sign in to comment.