[tests] Change builder inference tests in accordance with KT-53749 changes
This commit is contained in:
committed by
Space Team
parent
7515efc52c
commit
254bcdc80a
@@ -2,10 +2,10 @@
|
||||
// CHECK_TYPE_WITH_EXACT
|
||||
|
||||
fun test() {
|
||||
val buildee = build {
|
||||
val buildee = <!NEW_INFERENCE_ERROR!>build {
|
||||
setTypeVariable(DifferentType())
|
||||
consumeBuildeeReceiver()
|
||||
}
|
||||
}<!>
|
||||
// exact type equality check — turns unexpected compile-time behavior into red code
|
||||
// considered to be non-user-reproducible code for the purposes of these tests
|
||||
checkExactType<Buildee<TargetType>>(buildee)
|
||||
@@ -31,4 +31,4 @@ fun Buildee<TargetType>.consumeBuildeeReceiver() {
|
||||
|
||||
fun <PTV> build(instructions: Buildee<PTV>.() -> Unit): Buildee<PTV> {
|
||||
return Buildee<PTV>().apply(instructions)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user