Created
July 18, 2021 14:09
-
-
Save Morfly/a25e406efdfe5e793ed1b7f851e72f62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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