You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class MyTest {
class A {
fun t(): Int {
return 0
}
}
data class B(val nested: A = A())
@Test
fun test() {
val spec = validationSpec {
constraints<B> {
property(B::nested) {
valid()
}
}
constraints<A> {
returnOf(A::t) {
positive()
}
}
}
spec.validate(B())
}
}
Throws: A.t() kotlin.Int must belong to class B(nested=A())) to be callable
The text was updated successfully, but these errors were encountered:
Throws: A.t() kotlin.Int must belong to class B(nested=A())) to be callable
The text was updated successfully, but these errors were encountered: