rsdn/nemerle — Issue #210: Compilation fails if there is return and returns a function with an implicit conversion to a delegate.
Author: VladD2
Created: 2011-12-22 11:44:47+00:00
State: open
Labels: Bug, Compiler

The following code does not compile.

```nemerle
using System;

namespace NccDebug
{
public class Test
{
private static int Default(string _p) { return 0; }
public delegate int ConvertMethod(string p);

public static ConvertMethod GetConverter()
{
if (true)
return null;

//return new ConvertMethod(Default);
return Default; //
}
}
}
```