repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(DISTFILES): Comment out a few missing files.
[mono-project.git]
/
mcs
/
errors
/
cs0019-7.cs
blob
a18964f4d9222565b29f91ef8c2f1f807d9c8df7
1
// cs0019.cs: Can not apply operator + between string and float *
2
// Line: 12
3
// Compiler options: -unsafe
4
using
System
;
5
6
public class
Driver
{
7
public static void
Main
() {
8
float
[]
floats
=
new float
[
1
];
9
floats
[
0
] =
1.0
f
;
10
unsafe
{
11
fixed
(
float
*
fp
= &
floats
[
0
]) {
12
Console
.
WriteLine
(
"foo"
+
fp
);
13
}
14
}
15
}
16
}