Permalink
Browse files

Fix deprecation warning caused by upgrade to scala 2.10.3

The Block(stats: Tree*) factory method was deprecated in 2.10.1.
  • Loading branch information...
1 parent ebb9d16 commit 331a4bf7cf7a8d934ef3b62d708db4671f5e20fb Chris Birchall committed Nov 28, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 core/src/main/scala/org/scalamock/Mock.scala
@@ -280,9 +280,11 @@ object MockImpl {
List(List()),
TypeTree(),
Block(
- Apply(
- Select(Super(This(newTypeName("")), newTypeName("")), newTermName("<init>")),
- List())))
+ List(
+ Apply(
+ Select(Super(This(newTypeName("")), newTypeName("")), newTermName("<init>")),
+ List())),
+ Literal(Constant())))
def isMemberOfObject(m: Symbol) = TypeTag.Object.tpe.member(m.name) != NoSymbol

0 comments on commit 331a4bf

Please sign in to comment.