Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Implicit "this." in resolve results #14

Closed
erik-kallen opened this issue Feb 10, 2012 · 1 comment
Closed

Implicit "this." in resolve results #14

erik-kallen opened this issue Feb 10, 2012 · 1 comment

Comments

@erik-kallen
Copy link
Contributor

The following test passes:

[Test]
public void ImplicitThisReferences() {
    string program = @"
        using System;
        using System.Linq;
        class Test {
            int x;
            public void Main (string[] args) {
                $x$ = 1;
            }
        }";

    var rr = Resolve<MemberResolveResult>(program);
    Assert.That(rr.TargetResult is TypeResolveResult);
}

It's usable, but I think it would be more useful to have the TargetResult be a ThisRessolveResult instead because, after all, that's what the semantics of the expression is.

@dgrunwald
Copy link
Member

Thanks for the suggestion; fixed in a3ff017.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants