Skip to content

Ambiguous reference to member 'map' #25

@Isuru-Nanayakkara

Description

@Isuru-Nanayakkara

Hi,

In an old Swift 4 project which used this library, I had the following code.

let expanded = MutableProperty(false)
let dataSource = ProxyDataSource()

let s1 = StaticDataSource(items: [])
let s2 = StaticDataSource(items: [])

dataSource.innerDataSource <~ expanded.map { $0 ? s1 : s2 }

And it worked fine.

Recently I updated it to the latest version (1.0.1). Now I'm getting the following compile error.

Ambiguous reference to member 'map'

I checked the ReactiveSwift versions DataSource used in the old (3.0.1) and in the new version (6.0.1). The map function is still the same. So I'm not sure why error is occurring now.

Demo app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions