dotnet / dotnet/vblang

Can't call extension methods on `Object`

Open
#164 2 comments 0 reactions 0 assignees View on GitHub
Scenario
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

This is a commonly reported pain-point. Because VB uses `Object` as its dynamic type we disallow extension method lookup on values typed as `Object`. This was done for back-compat concerns as a previously late-bound invocation could become an early-bound extension method invocation when taking a new version of a library, or importing a namespace, etc.

Some have suggested some kind of option which switches off `Object` as the dynamic type and that this would enable this scenario.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.