Skip to content

Synthetic methods generated by Kotlin compiler for suspend functions should not cause discovery errors #5102

@marcphilipp

Description

@marcphilipp

Steps to reproduce

See

For every suspend function m, the Kotlin compiler generates a synthetic, static method m$suspendImpl that looks like a suspend function. However, since it's synthetic, lookups for the corresponding KFunction return null.

JUnit should not consider such synthetic methods as suspend functions and avoid the lookup and the subsequent failure.

Context

  • Used versions (Jupiter/Vintage/Platform): 6.0.0
  • Build Tool/IDE: irrelevant

Deliverables

  • Avoid reporting discovery errors for synthetic methods that look like suspend functions

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions