It seems strange that forAll complains about getting a String => Boolean
function. It works fine in the interpreter. The only reason I can see for
that error message is that Scala somehow thinks that forAll is given two
parameter lists. There exists an overloaded version of forAll of type
[T](Gen[T)(T => Prop) => Prop.

I can try to check out the Lift code and investigate the warnings when  
I get some time for it.

   / Rickard

Quoting Jorge Ortiz <[email protected]>:

> (Forwarding to Scalacheck list.)
>
> If I recall correctly these warnings showed up when I upgraded us to 2.7.2
> and the corresponding version of Scalacheck. I couldn't make them go away
> either.
>
> --j
>
> ---------- Forwarded message ----------
> From: David Pollak <[email protected]>
> Date: Sat, Jan 31, 2009 at 8:31 PM
> Subject: [Lift] Cleaning up warnings
> To: liftweb <[email protected]>
>
>
> Folks,
> I've been trying to clean up warnings in the Lift code.  I tried to change
> Prop.property to Prop.forAll as ScalaCheck has deprecated property, but the
> compiler complained the a String => Boolean was not a Gen.  Anybody have a
> clue how to make these warning go away:
> [WARNING]
> C:\Users\dpp\Documents\liftweb\lift-util\src\test\scala\net\liftweb\ut
> il\BoxUnit.scala:38: warning: method property in object Prop is deprecated
> [WARNING]       property(equality) must pass
> [WARNING]       ^
> [WARNING]
> C:\Users\dpp\Documents\liftweb\lift-util\src\test\scala\net\liftweb\ut
> il\CombParserHelpersSpec.scala:52: warning: method property in object Prop
> is de
> precated
> [WARNING]       property(whiteParse) must pass
> [WARNING]       ^
> [WARNING]
> C:\Users\dpp\Documents\liftweb\lift-util\src\test\scala\net\liftweb\ut
> il\CombParserHelpersSpec.scala:60: warning: method property in object Prop
> is de
> precated
> [WARNING]       property(whiteSpaceParse) must pass
> [WARNING]       ^
> [WARNING]
> C:\Users\dpp\Documents\liftweb\lift-util\src\test\scala\net\liftweb\ut
> il\CombParserHelpersSpec.scala:69: warning: method property in object Prop
> is de
> precated
> [WARNING]       property(ignoreCaseStringParse) must pass
> [WARNING]       ^
> [WARNING]
> C:\Users\dpp\Documents\liftweb\lift-util\src\test\scala\net\liftweb\ut
> il\CombParserHelpersSpec.scala:77: warning: method property in object Prop
> is de
> precated
> [WARNING]       property(isDigit) must pass
> [WARNING]       ^
> [WARNING]
> C:\Users\dpp\Documents\liftweb\lift-util\src\test\scala\net\liftweb\ut
> il\CombParserHelpersSpec.scala:86: warning: method property in object Prop
> is de
> precated
> [WARNING]       property(number) must pass
> [WARNING]       ^
> [WARNING]
> C:\Users\dpp\Documents\liftweb\lift-util\src\test\scala\net\liftweb\ut
> il\CombParserHelpersSpec.scala:119: warning: method property in object Prop
> is d
> eprecated
> [WARNING]       property((s: String) => (!stringWrapper(s).isEmpty) ==>
> permuteA
> llParsers(s)) must pass
> [WARNING]       ^
> [WARNING]
> C:\Users\dpp\Documents\liftweb\lift-util\src\test\scala\net\liftweb\ut
> il\CombParserHelpersSpec.scala:124: warning: method property in object Prop
> is d
> eprecated
> [WARNING]       property((s: String) => (!stringWrapper(s).isEmpty) ==>
> repNNPar
> ser(s)) must pass
> [WARNING]       ^
> [WARNING] 10 warnings found
>
> Thanks,
>
> David
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Git some: http://github.com/dpp
>
>
> >
>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to