Merge pull request #273 from joncham/bug-getpid
[mono.git] / mcs / tests / gtest-593.cs
1 using System;
2
3 public delegate Tuple<D1, DR1> Parser<D1, DR1> (D1 stream);
4
5 static class Combinator
6 {
7         public static Parser<L1, LR1> Lazy<L1, LR1> (Func<Parser<L1, LR1>> func)
8         {
9                 return null;
10         }
11
12         public static Parser<C1, CR1> Choice<C1, CR1> (Parser<C1, CR1> parsers)
13         {
14                 Parser<C1, CR1> tail = null;
15
16                 Lazy (() => Choice (tail));
17
18                 return null;
19         }
20
21         public static void Main ()
22         {
23                 Choice ((int l) => Tuple.Create (1, 2));
24         }
25 }