AnyDSL / MimIR

MimIR is my Intermediate Representation
https://anydsl.github.io/MimIR/
MIT License
48 stars 11 forks source link

Function used as a type but is in fact a term #95

Open NeuralCoder3 opened 2 years ago

NeuralCoder3 commented 2 years ago

Observed in lit/direct/ds2cps_ax_cps2ds_dependent_short.thorin Command line: ./build/bin/thorin -d direct -d tool ./lit/direct/ds2cps_ax_cps2ds_dependent_short.thorin --output-thorin -

Issue:

:4294967295: error: 'Π n_167425: .Nat → .infer (<nullptr>)' used as a type but is in fact a term 

High-level description: We constructed a wrapper around .Idx

Suspected problem: Idx has problems with the duality of fundamental integer and being applied as a function.

leissa commented 2 years ago

Suffers also from #106.

see also #103:

Work is underway to add type inference.

leissa commented 2 years ago

Marked as enhancement as the only remaining real problem is the type inference that is not yet properly implemented.