Skip to content

Type inference is wrong #38261

@yangmingshan

Description

@yangmingshan

TypeScript Version:
3.8.3

Search Terms:
type inference

Reproduction link:
https://codesandbox.io/s/dreamy-chandrasekhar-7pqfh

Steps to reproduce:
Check src/index.ts line 5.

Expected behavior:
Type of a.a is number.

Actual behavior:
Type of a.a is Ref<number>.

Related Issues:
vuejs/core#1083


See the comments in src/index.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalRelates to another program, environment, or user action which we cannot control.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions