You signed in with another tab or window. Reload to refresh your session.
8000
You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Type: an alias field can't be parsed, and nothing says what an alias stands for #530
Type.Field.parse (#529) fails on a field whose type is an alias, and Type gives no way to find what the alias stands for, so a library decoding rows can't read it.
type UserId = String
record User do
id : UserId
end
main do
Type.of(User).fields.each { |f| IO.printLine("${f.valueType.name} ${f.parse("u1")}") }
end
On main at 6fdaf4c this prints UserId Error(Field "id": Expected UserId, got "u1"). valueType is UserId, with no args, no constructors and no fields, so there's no way to tell it is String.
Expected: parse reads an alias as what it aliases (Ok("u1")), and Type says what an alias stands for (for example a Type.resolved, or valueType naming String with the alias kept beside it).
Harmat (Harmat.Database.read) reads an alias field as plain text until this is possible. That's wrong for type Count = Integer.
Activity
Records by type, OR conditions, and names back from Kex fixes