diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-03-01 09:34:35 -0500 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-03-01 09:34:35 -0500 |
commit | da124b33956f83be8b2ebbb77208c4aecde1c6dc (patch) | |
tree | 93f460f61eac9f6b26493cee43724cd6e4605591 /test | |
parent | cfac5e9e540434d5d1fc6decc2e6669995473c87 (diff) | |
parent | 6ec0f2f44f74657799b4b215c913a67089110061 (diff) | |
download | scala-da124b33956f83be8b2ebbb77208c4aecde1c6dc.tar.gz scala-da124b33956f83be8b2ebbb77208c4aecde1c6dc.tar.bz2 scala-da124b33956f83be8b2ebbb77208c4aecde1c6dc.zip |
Merge pull request #3596 from densh/si/8333
SI-8333 can't use modifiers if class is in a block
Diffstat (limited to 'test')
-rw-r--r-- | test/files/scalacheck/quasiquotes/DefinitionConstructionProps.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/files/scalacheck/quasiquotes/DefinitionConstructionProps.scala b/test/files/scalacheck/quasiquotes/DefinitionConstructionProps.scala index fdb0d83277..c6ad453c45 100644 --- a/test/files/scalacheck/quasiquotes/DefinitionConstructionProps.scala +++ b/test/files/scalacheck/quasiquotes/DefinitionConstructionProps.scala @@ -9,7 +9,7 @@ object DefinitionConstructionProps with ValDefConstruction with PatDefConstruction with DefConstruction - with PackageConstruction + with PackageConstruction with ImportConstruction { val x: Tree = q"val x: Int" @@ -81,6 +81,10 @@ trait ClassConstruction { self: QuasiquoteProperties => assertEqAst(q" class C($privx)", " class C(x: Int) ") assertEqAst(q"case class C($privx)", "case class C(private[this] val x: Int)") } + + property("SI-8333") = test { + assertEqAst(q"{ $NoMods class C }", "{ class C }") + } } trait TraitConstruction { self: QuasiquoteProperties => |