nemerle icon indicating copy to clipboard operation
nemerle copied to clipboard

Incorrect warning about unused variable in 'let' expression

Open NN--- opened this issue 11 years ago • 2 comments

using System;
using System.Console;
using System.Linq;
using Nemerle.Linq;

module Program
{
  Main() : void
  {
    def l = [1,2];

    _ = linq <# from e in l let x = e select x #>;

    _ = ReadLine();
  }
}
warning : N168: a value bound in pattern e was never used (defined in '_N_lambda__3765(_N_pat_3764 : (int * int)) : int-')
warning : hint: replace name with `_' or prefix it like `_bar' to avoid the warning

NN--- avatar Feb 04 '14 07:02 NN---

Чем мое иссуе не понравилось? https://github.com/rsdn/nemerle/issues/321

DarthSidius avatar Mar 23 '14 23:03 DarthSidius

Не видел :)

NN--- avatar Mar 24 '14 01:03 NN---