Skip to content

[SR-4438] Override methods that contains completion blocks with generic types as parameters are crashing or returning a wrong value #47015

@swift-ci

Description

@swift-ci
Previous ID SR-4438
Radar None
Original Reporter victor.kinvey (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

MacOS 10.12.4 / iOS 10.3 / tvOS 10.2
Swift 3.1

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

md5: a5c7b44f905f02d909dd597327cd108e

Issue Description:

Please see the main.swift file attached.
There you will see an example where a SubClass overriding a method in the BaseClass with a completion block as a parameter of the method either crash or return a wrong value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwarerun-time crashBug → crash: Swift code crashed during executionruntimeThe Swift Runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions