diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-12 12:11:40 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-12 15:21:15 +0100 |
commit | 609047ba372ceaf06916d3361954bc949a6906ee (patch) | |
tree | 93eceb1b342ea114b4923ef258a9409a054197a9 /dbuild-meta.json | |
parent | 98320a6d5947f26e7252b025cf56a0763b39cd07 (diff) | |
download | scala-609047ba372ceaf06916d3361954bc949a6906ee.tar.gz scala-609047ba372ceaf06916d3361954bc949a6906ee.tar.bz2 scala-609047ba372ceaf06916d3361954bc949a6906ee.zip |
typecheck(q"class C") no longer crashes
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.
Diffstat (limited to 'dbuild-meta.json')
0 files changed, 0 insertions, 0 deletions