File tree Expand file tree Collapse file tree
mmrpc-definition/src/commonMain/kotlin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33package org.cufy.mmrpc.builder
44
55import org.cufy.mmrpc.Marker3
6- import org.cufy.mmrpc.TupleLiteral
76import org.cufy.mmrpc.builtin
87import org.cufy.mmrpc.literal
98
@@ -25,16 +24,8 @@ fun Deprecated(message: String) {
2524
2625@Marker3
2726context(ctx: MetadataUsageContainerBuilder )
28- fun Contract (value : List < String > ) {
27+ fun Contract (value : String ) {
2928 + builtin.Contract {
30- + builtin.Contract__value (TupleLiteral (value.map { it.literal }))
31- }
32- }
33-
34- @Marker3
35- context(ctx: MetadataUsageContainerBuilder )
36- fun Contract (vararg value : String ) {
37- + builtin.Contract {
38- + builtin.Contract__value (TupleLiteral (value.map { it.literal }))
29+ + builtin.Contract__value (value.literal)
3930 }
4031}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ object builtin : NamespaceObject() {
4242 val Experimental__message by prop(String )
4343 val Experimental by metadata { + Experimental__message }
4444
45- val Contract__value by prop(String .array )
45+ val Contract__value by prop(String )
4646 val Contract by metadata { + Contract__value ; repeated() }
4747
4848 val elements = listOf (
You can’t perform that action at this time.
0 commit comments