blob: 76be4121a3a17b830b69a1c644d49dc26626068c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// CS0019: Operator `+' cannot be applied to operands of type `string' and `float*'
// Line: 12
// Compiler options: -unsafe
using System;
public class Driver {
public static void Main () {
float [] floats = new float[1];
floats[0] = 1.0f;
unsafe {
fixed (float *fp = &floats[0]) {
Console.WriteLine ("foo" + fp);
}
}
}
}
|