Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange “type of” #610

Open
kingtu opened this issue Oct 31, 2021 · 3 comments
Open

Strange “type of” #610

kingtu opened this issue Oct 31, 2021 · 3 comments

Comments

@kingtu
Copy link

kingtu commented Oct 31, 2021

I have a piece of code, as shown in the figure below.
神奇的赋值

Why isbill is “false” ?
If the type of c is form, the above situation will occur; Not if the type of c is control.

@pricerc
Copy link

pricerc commented Nov 5, 2021

If you look through the issues in this repo, you will find a few discussions about TypeOf, and how its behaviour is not always what people expect.

@rskar-git
Copy link

@kingtu

Could this be an issue about the debugger and the Watch window? I would suggest using the Quick Watch and the Immediate windows, and see what they display for TypeOf c Is IBill and isBill. You can also use them to confirm that c actually contains a reference to some object which implements IBill.

I suspect that the TypeOf operator is working as it should, but that the Watch window might not be getting properly updated (and hence making TypeOf c Is IBill and isBill seem out of sync).

@AnthonyDGreen
Copy link
Contributor

Is this... using the full-width keywords of legend?

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

No branches or pull requests

4 participants