Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-xml-050.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5be57b7f10f007fbd7f757a256e5094b68c1a76c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Compiler options: -doc:xml-050.xml -warnaserror
// see bug #76954.
// NOTE: It might got broken after some /doc related merge.
/// <summary>
/// <see cref="IB.Execute ()" />
/// <see cref="IB.Name" />
/// <see cref="B.Execute ()" />
/// <see cref="B.Name" />
/// </summary>
public class EntryPoint {
  static void Main () {
  }
}

/// <summary />
public interface IA {
  /// <summary />
  string Name {
    get;
  }

  /// <summary />
  string Execute ();
}

/// <summary />
public interface IB : IA {
  /// <summary />
  new int Name {
    get;
  }

  /// <summary />
  new int Execute ();
}

/// <summary />
public class A {
  /// <summary />
  public string Name {
    get { return null; }
  }

  /// <summary />
  public string Execute () {
    return null;
  }
}

/// <summary />
public class B : A {
  /// <summary />
  public new int Name {
    get { return 0; }
  }

  /// <summary />
  public new int Execute () {
    return 0;
  }
}