-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels