[PowerAssert] Add tests to recreate KT-65810

This commit is contained in:
Brian Norman
2024-02-26 11:38:21 -06:00
committed by Space Team
parent 78bb0be7aa
commit d53d5dddc5
10 changed files with 108 additions and 0 deletions
@@ -0,0 +1,12 @@
// FUNCTION: infix.dispatch.Wrapper.mustEqual
import infix.dispatch.*
data class Holder<T>(val wrapper: Wrapper<T>)
data object Complex {
val holder = Holder(Wrapper(3))
}
fun box() = expectThrowableMessage {
Complex.holder.wrapper.mustEqual("world".length)
}