logo       

type inference cannot guess.: msg#00011

lang.nemerle.devel

Subject: type inference cannot guess.

Hi,

type inference cannot guess this.

-- sample.n
using System;
using System.Collections.Generic;
using System.Query; // LINQ

def input = $ [1 .. 10] : IEnumerable [int];

// Sequence.Where (IEnumerable<T> source, Func<T, bool> predicate);

mutable output = Sequence.Where (input, x => x % 2 == 0);

--

error message is shown.

l.n:7:18:7:32:
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise