The underlying issue is that, while createComposeExtension() always returns an AndroidComposeExtension that properly implements several JUnit 5 extension points, its method signature returns the super interface ComposeExtension, which does not. Therefore, newer IDEs flag usages like the above with an annoying warning.
The underlying issue is that, while
createComposeExtension()
always returns anAndroidComposeExtension
that properly implements several JUnit 5 extension points, its method signature returns the super interfaceComposeExtension
, which does not. Therefore, newer IDEs flag usages like the above with an annoying warning.