Skip to content

Commit 6abd4bd

Browse files
authored
Merge pull request #376 from staticfloat/patch-1
Fix `ERROR: type DataTypeStore has no field val`
2 parents 299cb3b + efef5dd commit 6abd4bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type_inf.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ end
109109

110110
function infer_destructuring_type(binding, rb::SymbolServer.DataTypeStore)
111111
assigned_name = CSTParser.get_name(binding.val)
112-
for (fieldname, fieldtype) in zip(rb.val.fieldnames, rb.val.types)
112+
for (fieldname, fieldtype) in zip(rb.fieldnames, rb.types)
113113
if fieldname == assigned_name
114114
settype!(binding, fieldtype)
115115
return

0 commit comments

Comments
 (0)