projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #5675 from mono/glib-debug-symbols
[mono.git]
/
mcs
/
errors
/
cs0117-3.cs
diff --git
a/mcs/errors/cs0117-3.cs
b/mcs/errors/cs0117-3.cs
index f486cf0d795939ba0854714456d91d49a7c1649b..63e2027bcffb162f14583c6b06192ec789f67298 100644
(file)
--- a/
mcs/errors/cs0117-3.cs
+++ b/
mcs/errors/cs0117-3.cs
@@
-1,23
+1,24
@@
-// cs0117-3.cs: `A' does not contain a definition for `Foo'
-// Line: 16
+// CS0117: `Color' does not contain a definition for `Transparent'
+// Line:
+
using System;
using System;
-using System.Runtime.CompilerServices;
-class A
+struct Color
{
{
- [IndexerName ("Foo")]
- public int this [int index] {
- get { return index; }
- set { ; }
- }
+}
- static void Test (A a, int value)
+static class ExtensionMethods
+{
+ public static Color Transparent (this Color c)
{
{
-
a.Foo = value
;
+
return new Color ()
;
}
}
+}
+class MainClass
+{
public static void Main ()
{
public static void Main ()
{
-
Test (new A (), 9
);
+
var c = Color.Transparent (
);
}
}
}
}