handzlikchris / handzlikchris/FastScriptReload

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

Aperta
#117 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
workaround
Lingua principale
C#
Stelle
2.2k
Fork
167
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.
}
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

The issue provides no file, test, or entry point to begin from; locate the rewriter responsible for extension-method calls and study how the current workaround is handled. Done means the rewriter supports the shown self-file extension call without the compiler's ambiguous-call error, while preserving the existing direct-call behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
devtools
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.