diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-18 14:37:51 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-03-23 12:02:26 +0100 |
commit | 3314d76cebc6e27ba4d4ca75cc64fe67fcb90fb6 (patch) | |
tree | 3baf8d11bbed829f6ba0b66b03144a46fe05baed /project/Build.scala | |
parent | b66a39653b9bccab72036ba58fec5fd7d596d313 (diff) | |
download | scala-3314d76cebc6e27ba4d4ca75cc64fe67fcb90fb6.tar.gz scala-3314d76cebc6e27ba4d4ca75cc64fe67fcb90fb6.tar.bz2 scala-3314d76cebc6e27ba4d4ca75cc64fe67fcb90fb6.zip |
[nomaster] 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.
(cherry picked from commit 609047ba372ceaf06916d3361954bc949a6906ee)
Diffstat (limited to 'project/Build.scala')
0 files changed, 0 insertions, 0 deletions