Skip to content

Commit efef5dd

Browse files
authored
Fix ERROR: type DataTypeStore has no field val
It appears to me that the current definition of `DataTypeStore` does not have a `val` field, and instead this code was a typo.
1 parent 299cb3b commit efef5dd

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)