jkbbwr
11/12/2015, 2:33 PMjkbbwr
11/12/2015, 2:33 PMylemoigne
11/12/2015, 2:41 PMnatpryce
11/12/2015, 2:48 PMcedric
11/12/2015, 3:12 PMnatpryce
11/12/2015, 3:12 PMvoddan
11/12/2015, 4:31 PMhastebrot
11/12/2015, 4:59 PMshould()
"extension function" in ScalaTest?damian
11/12/2015, 5:01 PMclass Foo(@Hide(Visibility.PRIVATE) val a: Int) { inline fun bar() = a }
would generate a warning / error if attempting to access Foo(5).a
but still allow inliningdamian
11/12/2015, 5:02 PM@Deprecated
?)hastebrot
11/12/2015, 5:04 PM==
or equals()
for any type in Kotlin, because the type's already defined equals()
member always wins.hastebrot
11/12/2015, 5:06 PMfun main(args: Array<String>) {
expecty {
12.3 == 23.4
"foo" == "bar"
}
}
class Expecty() {
fun Any?.equals(other: Any?): Boolean {
println("expecty: $this")
return true
}
}
fun expecty(context: Expecty.() -> Unit) {
Expecty().context()
}
natpryce
11/12/2015, 5:08 PMnatpryce
11/12/2015, 5:09 PMhastebrot
11/12/2015, 5:11 PMexpecty()
are not as readable as with Hamcrest/Hamkrest.rwachol
11/12/2015, 5:22 PMyole
11/12/2015, 5:26 PMilya.gorbunov
11/12/2015, 5:50 PMdamian
11/12/2015, 5:54 PMrwachol
11/12/2015, 6:22 PMvoddan
11/12/2015, 6:43 PMylemoigne
11/12/2015, 11:38 PMylemoigne
11/12/2015, 11:39 PMmikehearn
11/12/2015, 11:39 PMmikehearn
11/12/2015, 11:39 PMbo
11/12/2015, 11:40 PMylemoigne
11/12/2015, 11:57 PMpakoito
11/13/2015, 2:46 AMpakoito
11/13/2015, 2:46 AMpakoito
11/13/2015, 2:47 AM