提交 279e1009 编写于 作者: M Marek Safar

Import all delegates as sealed

上级 e4af525f
// CS0509: `A': cannot derive from sealed type `System.Action'
// Line: 4
class A : System.Action
{
}
......@@ -484,6 +484,7 @@ namespace Mono.CSharp
} else if (type.IsClass || type.IsAbstract) { // SRE: System.Enum returns false for IsClass
if ((ma & TypeAttributes.Sealed) != 0 && type.IsSubclassOf (typeof (MulticastDelegate))) {
kind = MemberKind.Delegate;
mod |= Modifiers.SEALED;
} else {
kind = MemberKind.Class;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册