tarcieri / reia

Ruby-like hybrid OOP/functional programming language for BEAM, the Erlang VM
http://reia-lang.org
MIT License
775 stars 36 forks source link

Binding annotator/SSA transform fails on chained method calls #13

Closed tarcieri closed 13 years ago

tarcieri commented 13 years ago

Example:

bindings = {}.insert(:title, 'Ryan and Reia homemade webapp').insert(:head, head)

Context:

http://github.com/pirj/ryan/blob/master/application_example/pages/home.re

Error:

Loading pages: home.re /home/phil/source/ryan/application_example/pages/home.re:17: variable head is unbound
exception error: no match of right hand side value error
 in function  reia_bytecode:compile_submodule/3
 in call from reia_bytecode:'-compile_submodules/3-lc$^0/1-0-'/3
 in call from reia_bytecode:compile_expressions/3
 in call from reia_bytecode:compile/3
 in call from reia_internal:compile/2
 in call from reia_internal:load/2
 in call from lists:foreach/2
 in call from 'List':call/2
tarcieri commented 13 years ago

Seems to be working now shrug