От: | Rival | https://twitter.com/#!/red_rival | |
Дата: | 27.02.12 21:17 | ||
Оценка: |
using Nemerle.Collections;
using Nemerle.Text;
using Nemerle.Utility;
using Nemerle.Imperative;
using System;
using System.Console;
module Program
{
class Foo
{
public Do(_:Foo ->void):void
{
}
public Waka():void{}
}
Main() : void
{
def foo = Foo();
for(mutable i = 0; i < 2;i++)
{
when (i == 1)
{
break; // если закомментить компилится
}
foo.Do(f => f.Waka());
foo.Do <| _.Waka(); // или если это
}
_ = ReadLine();
}
}
Main.n(29,21): error : non local goto (block return?) detected (l4028)