Open PROMETHIA-27 opened 1 year ago
Minimal repro:
type Generic t = inner: t print <| size_of <| MkType : Type Generic
This causes the following error: thread 'main' panicked at 'Kind error during llvm code generation', src\hir\monomorphisation.rs:278:9
thread 'main' panicked at 'Kind error during llvm code generation', src\hir\monomorphisation.rs:278:9
This one seems like it'll require some actual design work to fix, unless it's a mistake that a generic type can be used like this in the first place.
Yes, this looks like I'll need to add proper kind checking to resolve this
Minimal repro:
This causes the following error:
thread 'main' panicked at 'Kind error during llvm code generation', src\hir\monomorphisation.rs:278:9
This one seems like it'll require some actual design work to fix, unless it's a mistake that a generic type can be used like this in the first place.