a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
266 B
C#
24 lines
266 B
C#
// CS0459: Cannot take the address of using variable `m'
|
|
// Line: 19
|
|
// Compiler options: -unsafe
|
|
|
|
using System;
|
|
|
|
struct S : IDisposable
|
|
{
|
|
public void Dispose ()
|
|
{
|
|
}
|
|
}
|
|
|
|
class X {
|
|
|
|
unsafe static void Main ()
|
|
{
|
|
using (S m = new S ()){
|
|
S* mm = &m;
|
|
}
|
|
}
|
|
}
|
|
|