diff options
Diffstat (limited to 'mcs/errors/cs8081-2.cs')
-rw-r--r-- | mcs/errors/cs8081-2.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mcs/errors/cs8081-2.cs b/mcs/errors/cs8081-2.cs new file mode 100644 index 00000000000..dcc1583db8a --- /dev/null +++ b/mcs/errors/cs8081-2.cs @@ -0,0 +1,10 @@ +// CS8081: Expression does not have a name +// Line: 8 + +class C +{ + void Foo () + { + string s = nameof (this); + } +}
\ No newline at end of file |