Hiya, wanted to share a regression using K2 with K...
# k2-adopters
g
Hiya, wanted to share a regression using K2 with Kotlin 1.7.20-Beta It's related to Curiously-Recurring Template Pattern/"_F_-bounded quantification" in TestContainers classes:
Copy code
New inference error [NewConstraintError at Incorporate TypeVariable(SELF) == CapturedType(*) from Fix variable TypeVariable(SELF) from position Fix variable TypeVariable(SELF): CapturedType(*) <!: ft<org/testcontainers/containers/MySQLContainer<ft<CapturedType(*) & Any, CapturedType(*)?>>, org/testcontainers/containers/MySQLContainer<ft<CapturedType(*) & Any, CapturedType(*)?>>?>]
Where that line is:
Copy code
private val container = MySQLContainer(imageName).withInitScript(initScript)
And MySQL class definition is:
Copy code
public class MySQLContainer<SELF extends MySQLContainer<SELF>> extends JdbcDatabaseContainer<SELF>
m
🙏 . Could you please create a youtrack issue?
g
Sure 👍