Skip to content

expression is not callable when using O.Writable #84

Closed
@xaviergonz

Description

@xaviergonz

Worked ok in 4.x, doesn't work in 6.x
TS 3.7.4

class X {
  fn(): void {}
}

function test<C extends X>(c: C) {
  const cc = c as O.Writable<C>
  cc.fn() // this expression is not callable
}

Activity

millsp

millsp commented on Dec 31, 2019

@millsp
Owner

Hi @xaviergonz, thanks for reporting his. I'm going to push a fix soon.

added a commit that references this issue on Dec 31, 2019
xaviergonz

xaviergonz commented on Dec 31, 2019

@xaviergonz
Author

That was fast, thanks!

millsp

millsp commented on Dec 31, 2019

@millsp
Owner

Like Speedy Gonzales 🐭💨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @xaviergonz@millsp

        Issue actions

          expression is not callable when using O.Writable · Issue #84 · millsp/ts-toolbelt