mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
10 lines
245 B
Kotlin
10 lines
245 B
Kotlin
// "Create function 'foo'" "true"
|
|
|
|
fun test() {
|
|
val a: Int = Unit.foo(2)
|
|
}
|
|
|
|
fun Unit.foo(i: Int): Int {
|
|
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
|
}
|