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: 8c828f6c2b3505bda6e06bf2d2ba68904448cf1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// cs0019-7.cs: 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);
      }
    }
  }
}