Last active
September 29, 2017 02:11
-
-
Save pedrofurla/761cf0c83d081776cf944c2bd0befc3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
object IsItTrue { | |
val maybe = false | |
object bs { | |
val hhh = 10 | |
def inc(x:Int) = x + 1 | |
def sum(x:Int)(y:Int) = x + y | |
} | |
} | |
def f = false | |
def t = true |
This file contains hidden or 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
package sourcesource | |
object Main{ | |
def main(args: Array[String]): Unit = { | |
import Source._ | |
object IsItTrue { | |
val maybe = false | |
object bs { | |
val hhh = 10 | |
def inc(x:Int) = x + 1 | |
def sum(x:Int)(y:Int) = x + y | |
} | |
} | |
def f = false | |
def t = true | |
case class Complicated(a:Int, b:String) | |
val complicated = Complicated(10,"Bleh") | |
val complicated2 = Complicated(0,"Not") | |
println("\n===== FullInfo1 =======") | |
println(full( t && IsItTrue.maybe || t && !f && IsItTrue.bs.hhh == 10 && IsItTrue.bs.inc(6) == 7)) | |
println("\n===== FullInfo2 =======") | |
println(full( IsItTrue.bs.inc(6) == 100 || IsItTrue.bs.sum(6)(7) == 50 || true == true )) | |
println("\n===== FullInfo3 =======") | |
println(full( IsItTrue.bs.inc(6) == 100 || IsItTrue.bs.sum(6)(7) == 50 || complicated == Complicated(10,"Bleh") )) | |
println("\n ======= Showraw ======== ") | |
println(full(complicated == Complicated(10,"Bleh"))) | |
//println(raw(complicated == Complicated(10,"Bleh"))) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
outputs