Skip to content
Browse files

Fix problem with jsonCall implicits not in scope

  • Loading branch information...
1 parent 23d98a8 commit 1444c640bc8798829aa467fa6e197a0e8bb09e07 @jeppenejsum jeppenejsum committed Feb 23, 2012
View
2 core/util/src/main/scala/net/liftweb/util/BasicTypesHelpers.scala
@@ -37,7 +37,7 @@ object AvoidTypeErasureIssues1 {
/**
* Automagically vend a AvoidTypeErasureIssues1
*/
- implicit def vendOne(): AvoidTypeErasureIssues1 = new AvoidTypeErasureIssues1 {}
+ implicit val vendOne: AvoidTypeErasureIssues1 = new AvoidTypeErasureIssues1 {}
}
/**
View
8 core/util/src/test/scala/net/liftweb/util/BasicTypesHelpersSpec.scala
@@ -179,5 +179,13 @@ object BasicTypesHelpersSpec extends Specification("BasicTypesHelpers Specificat
}
}
+ "AvoidTypeErasure implicit value" should {
+ "be in scope" in {
+ def f(i:Int)(implicit d: AvoidTypeErasureIssues1) = i+1
+
+ f(2) must_== 3
+ }
+ }
+
}

0 comments on commit 1444c64

Please sign in to comment.
Something went wrong with that request. Please try again.