Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs4012-2.cs
1 // CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators
2 // Line: 9
3
4 using System;
5 using System.Collections;
6
7 class C
8 {
9         public IEnumerable Iter ()
10         {
11                 int i = 2;
12                 TypedReference tr = __makeref (i);
13                 yield return 1;
14         }
15 }