handzlikchris / handzlikchris/FastScriptReload
Try to fix rewrite for self file extension method [Workaround]
Open
workaround
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
Hi, let's try to make a rewriter for extension methods. It would allow to avoid ambiguous call compilation errors :
```c#
public static class SomeClass {
public static void MyExtension(this string myString){ ... }
public static void MyMethod(){ "someValue".MyExtension() } //Will cause an ambiguous call in the compiler
public static void MyMethod(){ MyExtension("someValue") } //This works and is the current workaround.
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.