You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This looks fine in the editor (Rider) but fails when compiling:
openSystem.Threading.Tasksletmap(f:'a ->'b)(t:Task<'a>):Task<'b>=
backgroundTask {let!x= t
return f x
}
The errors are:
0>ConsoleApp1\Program.fs(4,3): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
0>ConsoleApp1\unknown(1,1): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
0>ConsoleApp1\Program.fs(4,3): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
0>ConsoleApp1\unknown(1,1): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
0>ConsoleApp1\Program.fs(4,3): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
0>ConsoleApp1\Program.fs(4,3): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
0>ConsoleApp1\unknown(1,1): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
0>ConsoleApp1\Program.fs(4,3): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
0>ConsoleApp1\unknown(1,1): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
0>ConsoleApp1\unknown(1,1): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
0>ConsoleApp1\Program.fs(4,3): Error FS0073 : internal error: Undefined or unsolved type variable: 'a
If I use task instead of backgroundTask, it works fine.
Activity
vzarytovskii commentedon Apr 29, 2022
Looks like a duplicate of #12761