Add more tests in uncommonCases folder
1) dataClass.kt - test with data class 2) receiver.kt - test with Int extension receiver 3) delegation.kt - test with implementation by delegation
This commit is contained in:
committed by
Mikhail Glukhikh
parent
b8ef09a157
commit
262f57d938
@@ -0,0 +1,12 @@
|
||||
fun Int.addOne(): Int {
|
||||
return this + 1
|
||||
}
|
||||
|
||||
val Int.repeat: Int
|
||||
get() = this
|
||||
|
||||
fun main() {
|
||||
val i = 2
|
||||
i.addOne()
|
||||
val p = i.repeat * 2
|
||||
}
|
||||
Reference in New Issue
Block a user