Skip to content

Instantly share code, notes, and snippets.

@Morfly
Created July 18, 2021 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Morfly/a25e406efdfe5e793ed1b7f851e72f62 to your computer and use it in GitHub Desktop.
Save Morfly/a25e406efdfe5e793ed1b7f851e72f62 to your computer and use it in GitHub Desktop.
package com.morfly
@Function(name = "functionWithoutArgs")
interface FunctionWithoutArgs
@Function(name = "myAmazingFunction")
interface MyAmazingFunction {
val arg1: String?
val arg2: List<Int?>
val arg3: List<Map<String, *>>
}
fun main() {
functionWithoutArgs()
myAmazingFunction(
arg1 = "value",
arg2 = listOf(1, 2, null),
arg3 = listOf(mapOf("key1" to "value1"))
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment