Skip to content

Commit 2ad196d

Browse files
authored
Merge pull request #49 from rocklabs-io/variant-fix
fix variant with value type
2 parents b1936af + 5eec289 commit 2ad196d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ic/parser/DIDEmitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def exitVariantKV(self, ctx:DIDParser.VariantKVContext):
197197
# Exit a parse tree produced by DIDParser#VariantName.
198198
def exitVariantName(self, ctx:DIDParser.VariantNameContext):
199199
key = ctx.Name().getText()
200-
self.cache[ctx] = (key, None)
200+
self.cache[ctx] = (key, Types.Null)
201201

202202

203203
# Exit a parse tree produced by DIDParser#functype.

0 commit comments

Comments
 (0)