mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
9 lines
255 B
Kotlin
9 lines
255 B
Kotlin
// "Create function 'foo' from usage" "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.
|
|
} |