Created
March 11, 2018 11:42
-
-
Save jad-hamza/cdfd7621c48c188e30210df4951880ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait A { | |
var u: BigInt | |
var v: BigInt | |
def f(x: BigInt): BigInt | |
} | |
case class B(a: A) | |
object Example { | |
def invariant(b: B) = { | |
b.a.f(b.a.u) == b.a.v | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment