Skip to content

Fix annoying type inference in database context expressions #46

Open
@agentm

Description

Example:

 :showexpr relation {spam Maybe Int}{tuple{spam Nothing}}
┌────────────────────────────┐
│spam::Maybe (a::IntAtomType)│
├────────────────────────────┤
│Nothing                     │
└────────────────────────────┘
TutorialD (master): x:=relation{spam Maybe Int}
TutorialD (master): insert x relation{tuple{spam Nothing}}
ERR: TypeConstructorTypeVarsMismatch (fromList ["a"]) (fromList [])

The relvar type used in the insert should be used to resolve the tuple's type.

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions