repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
dcs1972.cs
blob
c3196d2d26a03f87ee6279416feb9d7e59d29324
1
// CS1972: The indexer base access cannot be dynamically dispatched. Consider casting the dynamic arguments or eliminating the base access
2
// Line: 18
3
// Compiler options: -langversion:future
4
5
class
A
6
{
7
public int this
[
int
i
] {
8
get
{
9
return
i
;
10
}
11
}
12
}
13
14
class
B
:
A
15
{
16
public void
Test
()
17
{
18
dynamic
d
=
null
;
19
var
r
=
base
[
d
];
20
}
21
}