handzlikchris / handzlikchris/FastScriptReload

Try to fix rewrite for self file extension method [Workaround]

Open
#117 4 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.