Skip to content

[SR-10069] Local functions cannot be overloaded #52471

@swift-ci

Description

@swift-ci
Previous ID SR-10069
Radar rdar://problem/29312676
Original Reporter Jessy (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode 10.2 beta 2

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: a3e401e1593c9e4c9bddb38188f91607

is duplicated by:

  • SR-13306 Incorrect shadowing behavior for local functions and outer function parameters

Issue Description:

These don't compile:

  1. Nested overloads with different parameter types.

  2. Calling a nested function before an overload is defined later in the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions