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
Warnings cleanup
[mcs.git]
/
errors
/
cs0023-7.cs
blob
3135281606e9629ba39e1ee76b7b3eba3ba418d7
1
// CS0023: The `.' operator cannot be applied to operand of type `int*'
2
// Line: 8
3
// Compiler options: -unsafe
4
5
class
C
6
{
7
static unsafe int
*
Foo
()
8
{
9
return
(
int
*)
0
;
10
}
11
12
public static void
Main
()
13
{
14
unsafe
{
15
string
s
=
Foo
().
ToString
();
16
}
17
}
18
}