Kotlin / kotlin-koans

Kotlin workshop
MIT License
2.6k stars 1.41k forks source link

Fixed a small error in _15_OperatorsOverloading.kt #11

Closed ddrone closed 10 years ago

ddrone commented 10 years ago

Function addTimeIntervals referred in comment is actually in MyDateUtil, not in MyDate.

svtk commented 10 years ago

I meant an extension function to MyDate (saying 'function MyDate.addTimeIntervals'). The file name might be added anyway if it's unclear.

ivstas commented 10 years ago

As far as I understand, addTimeIntervals is an extension function to MyDate class, so the initial approach looks slightly more correct. @svtk, would you mind writing Use a utility function MyDate.addTimeIntervals (located in MyDateUtil.kt) ?