fsharp
fsharp copied to clipboard
Can't define extensions for two same named types in a single module
module Compiled
type Task = { F: int }
module CompiledExtensions =
type System.Threading.Tasks.Task with
static member CompiledStaticExtension() = ()
type Task with
static member CompiledStaticExtension() = ()
Error FS2014:
A problem occurred writing the binary 'obj\Debug\net9.0\refint\Compiled.dll': Error in pass2 for type Compiled, error:
Error in pass2 for type CompiledExtensions, error: duplicate entry 'Task.CompiledStaticExtension.Static' in method table