about summary refs log tree commit diff
path: root/src/test/compile-fail/occurs-check.rs
AgeCommit message (Collapse)AuthorLines
2011-08-20ReformatBrian Anderson-4/+1
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-16Make let bindings' scope start at their definitionMarijn Haverbeke-1/+2
Also, allow let bindings in a block to shadow each other.
2011-08-04Implement the occurs checkTim Chevalier-0/+4
In the writeback phase, the typechecker now checks that it isn't replacing a type variable T with a type that contains T. It also does an occurs check in do_autoderef in order to avoid getting into an infinite chain of derefs. I'm a bit worried that there are more places where the occurs check needs to happen where I'm not doing it now, though. Closes #768