Symptom: A weird error such as:
error FS0001: This expression was expected to have type
'FSI_0011.MyType'
but here has type
'FSI_0012.MyType'
static async IAsyncEnumerable<T> UnFold<T, TAcc>(Func<TAcc, Task<(bool Next, IAsyncEnumerable<T> Values, TAcc Acc)>> f, TAcc seed) | |
{ | |
var acc = seed; | |
var result = default((bool Next, IAsyncEnumerable<T> Values, TAcc Acc)); | |
do | |
{ | |
result = await f(acc); | |
await foreach (var value in result.Values) | |
yield return value; |
using System.Collections.Generic; | |
using System.Linq; | |
namespace PageCalculator | |
{ | |
public class Page | |
{ | |
public Page(int skip, int take) | |
{ | |
Skip = skip; |
using System; | |
using System.Linq; | |
using System.Text; | |
using Castle.MicroKernel; | |
using Castle.MicroKernel.Handlers; | |
using Castle.Windsor; | |
using Castle.Windsor.Diagnostics; | |
namespace Extensions |
#r "System.Xml.Linq" | |
open System | |
open System.IO | |
open System.Xml.Linq | |
let script = seq { | |
//TODO: this currently loads fsproj's in alphabeticall order, we should instead | |
//build the dependencies graph of the fsproj's and load them in topological sort order |
public interface IDependencyA | |
{ | |
int QueryMethod(int q); | |
} | |
public interface IDependencyB | |
{ | |
void CommandMethod(int c); | |
} |
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=2042F55FFF64F8489A3078E18B77EF16/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=2042F55FFF64F8489A3078E18B77EF16/Shortcut/@EntryValue">test</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=2042F55FFF64F8489A3078E18B77EF16/Description/@EntryValue">Creates NUnit test</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=2042F55FFF64F8489A3078E18B77EF16/Text/@EntryValue">[Test]
 | |
public void $MethodName$()
 | |
{
 | |
// assign
 | |
$END$
 | |

 |
namespace AutoFixtureExtensions | |
{ | |
using Ploeh.AutoFixture; | |
using Ploeh.AutoFixture.AutoMoq; | |
using Ploeh.AutoFixture.Kernel; | |
public class SpecificArgumentsConstructorQuery : IMethodQuery | |
{ | |
private readonly Type[] _types; |
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Resources; | |
using System.Web.Mvc; | |
using FluentValidation.Results; | |
namespace Helpers | |
{ |
using System; | |
using System.Net; | |
using System.Text; | |
using RestSharp; | |
namespace RestSharpExtensions | |
{ | |
internal static class RestSharpExtensions | |
{ |