Skip to content

_dynamicReplacement could not call origin async method  #62214

Open
@Whirlwind

Description

@Whirlwind

Xcode 14.1, swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)


dynamic
public func runCommander() async {
    printf("1")
}

@_dynamicReplacement(for: runCommander())
public func core_runCommander() async {
    await runCommander()
}

I get a deadloop:
image

I try other methods, same wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    @_dynamicReplacementFeature → attributes: the @_dynamicReplacement attributeasync & awaitFeature → concurrency: asynchronous function aka the async/await patternattributesFeature: Declaration and type attributesbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfconcurrencyFeature: umbrella label for concurrency language featuresruntimeThe Swift Runtimeswift 5.7unexpected behaviorBug: Unexpected behavior or incorrect output

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions