Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | typecheck(q"class C") no longer crashes | Eugene Burmako | 2014-02-12 | 2 | -0/+22 |
MemberDefs alone can't be typechecked as is, because namer only names contents of PackageDefs, Templates and Blocks. And, if not named, a tree can't be typed. This commit solves this problem by wrapping typecheckees in a trivial block and then unwrapping the result when it returns back from the typechecker. |