Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #104

Closed
kurtlawrence opened this issue May 31, 2022 · 0 comments · Fixed by #117
Closed

[BUG] #104

kurtlawrence opened this issue May 31, 2022 · 0 comments · Fixed by #117
Labels
bug Something isn't working

Comments

@kurtlawrence
Copy link
Member

Current Behaviour

Compiler error:

┃>> open ##### | let {nth 0 get:Num ###} $start {last get:Num ###} $end                                                                                                             
┃Typing Error: Type resolution failed                                                                                                                                                                  ┃--> shell:62                                                                                                                                                                                          
┃ | open #### | let {nth 0 get:Num ###} $start {last get:Num ###} $end                                                                                                             
┃ |                                                               ^^^^^^^^^^^^^^^^^^ this node is only inferred                                                                                        ┃
┃--> <ogma>:46                                                                                                                                                                                         
┃ | def last Table (expr:Expr) { nth {len | - 1} $expr }                                                                                                                                               ┃ |                                               ^^^^ but this node is has stronger type garauntees                                                                                                   
┃--> help: this is an internal bug, please report it at <https://github.com/kdr-aus/ogma/issues>                                                                                                       
┃Please supply this BACKTRACE:                                                                                                                                                                         
┃   0: ogma::eng::comp::resolve_tg::<impl ogma::eng::Compiler>::resolve_tg                                                                                                                             
┃   1: ogma::eng::comp::<impl ogma::eng::Compiler>::compile                                                                                                                                            
┃   2: ogma::eng::comp::compile_with_seed_vars                                                                                                                                                         ┃   3: std::sys_common::backtrace::__rust_begin_short_backtrace                                                                                                                                        ┃   4: core::ops::function::FnOnce::call_once{{vtable.shim}}                                                                                                                                           
┃   5: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once                                                                                                                        
┃             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9                                                                                                     
┃      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once                                                                                                                        
┃             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/alloc/src/boxed.rs:1853:9                                                                                                     
┃      std::sys::unix::thread::Thread::new::thread_start                                                                                                                                               
┃             at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys/unix/thread.rs:108:17                                                                                             
┃   6: start_thread                                                                                                                                                                                    
┃   7: clone

Expected Behaviour

Reproduction Steps

Additional information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant