e46a49ecf1
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
15 lines
191 B
C#
15 lines
191 B
C#
// CS8176: Iterators cannot use by-reference variables
|
|
// Line: 12
|
|
|
|
using System.Collections.Generic;
|
|
|
|
class X
|
|
{
|
|
int x;
|
|
|
|
IEnumerable<int> Test ()
|
|
{
|
|
ref int y = ref x;
|
|
yield break;
|
|
}
|
|
} |