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

cs0019-7.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a18964f4d9222565b29f91ef8c2f1f807d9c8df7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// cs0019.cs: Can not apply operator + between 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);
      }
    }
  }
}