summaryrefslogtreecommitdiff
path: root/test/files/pos/t1168.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-02-12 12:11:40 +0100
committerEugene Burmako <xeno.by@gmail.com>2014-02-12 15:21:15 +0100
commit609047ba372ceaf06916d3361954bc949a6906ee (patch)
tree93eceb1b342ea114b4923ef258a9409a054197a9 /test/files/pos/t1168.scala
parent98320a6d5947f26e7252b025cf56a0763b39cd07 (diff)
downloadscala-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 'test/files/pos/t1168.scala')
0 files changed, 0 insertions, 0 deletions