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

this function takes a long time to check and creates a million type variables #132

Open
Tracked by #237
ooovi opened this issue Dec 20, 2021 · 0 comments
Open
Tracked by #237
Labels
invalid This doesn't seem right question Further information is requested
Milestone

Comments

@ooovi
Copy link
Contributor

ooovi commented Dec 20, 2021

 typecheck_hs_from_string("function test()                   
                      function f(a)                  
                          function h(b)              
                              i(b) = 2*b + a         
                              i(b*5)                 
                          end                        
                          function g(h,a)            
                              x = h(a*7)             
                              y = h(a*7)             
                              x + y                  
                          end                        
                          a = g(h,a)                 
                          a = g(h,a)                 
                          function h(b::Integer)              
                              a*11                   
                          end                        
                          a = g(h,a)                 
                          a                          
                      end                            
                      f(13)                          
                   end"
       )

the result type is correct tho.

@ooovi ooovi added invalid This doesn't seem right question Further information is requested labels Dec 20, 2021
@MxmUrw MxmUrw mentioned this issue Mar 18, 2022
4 tasks
@MxmUrw MxmUrw added this to the Future ideas milestone Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants