C# Class sample turns off F# highlighting afterwards
isaacabraham opened this issue · comments
Isaac Abraham commented
The following sample turns off highlighting for the F# snippet. However, if you invert them, the F# code is correctly set. Also, replacing the C# sample with var x = 1;
leaves F# highlighting intact.
```csharp
class Employee { }
```
***
```fsharp
type Foo = | A | B | C
```
Steffen Forkmann commented
that's a feature! don't use that language
Dave Shaw commented
How else do you shame C#? ;)
I noticed this when using C#'s String Interpolation.
This works:
```csharp class C {} ``` --- ```fsharp let x = 10 ```
This doesn't:
```csharp void Foo(int x) => $"{x}"; ``` --- ```fsharp let x = 10 ```