Skip to content

Fix type inference issues with generic method calls.#30

Open
m-carrasco wants to merge 1 commit intoedgardozoppi:metadata-providerfrom
m-carrasco:generics-type-inference
Open

Fix type inference issues with generic method calls.#30
m-carrasco wants to merge 1 commit intoedgardozoppi:metadata-providerfrom
m-carrasco:generics-type-inference

Conversation

@m-carrasco
Copy link
Copy Markdown

@m-carrasco m-carrasco commented Dec 1, 2019

Without this fix, the type inference analysis types "b" with !0 rather than int32. That generates a conflict with the Foo's signature.

class A<T>{

public T Get() { ... }
}
                    int Foo(){
                        A<int32> a = new A<int32>();
                        int b = a.Get();
                        return b;
                    }

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants