We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef57c81 commit 81ddb88Copy full SHA for 81ddb88
1 file changed
mmrpc-definition/src/commonMain/kotlin/builder/ConstDefinitionBuilder.kt
@@ -105,3 +105,17 @@ fun const(
105
) = const(struct, value, block)
106
107
////////////////////////////////////////
108
+
109
+@Marker2
110
+operator fun TypeDefinition.invoke(
111
+ value: Literal = null.literal,
112
+ block: ConstDefinitionBuilder.() -> Unit = {}
113
+) = const(this, value, block)
114
115
116
+operator fun Unnamed<TypeDefinition>.invoke(
117
118
119
120
121
+////////////////////////////////////////
0 commit comments