hash declaration with empty {}
Status: Beta
Brought to you by:
z3vil
code :
use java.lang.*;
main{
my $hash int%<- {} ;
$hash\key <- 666 ;
System->out->println[ $hash ];
}
results:
Type mismatch: cannot convert from Hash to Hash:-I @[9,8]
at alefpp.interpreter.Interpret.visit(Interpret.java:3172)
at alefpp.interpreter.Interpret.visit(Interpret.java:2628)
at alefpp.interpreter.Interpret.visit(Interpret.java:385)
at alefpp.interpreter.Interpret.visit(Interpret.java:339)
at alefpp.interpreter.Interpret.visit(Interpret.java:1528)
at alefpp.interpreter.Interpret.visit(Interpret.java:196)
at alefpp.main.Main.main(Main.java:45)