fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public class Point
  6. {
  7. public Point( int x, int y )
  8. {
  9. this.x = x;
  10. this.y = x;
  11. }
  12. public int x, y;
  13. }
  14.  
  15. public class Block
  16. {
  17. public Block( int rotate, Point[] p )
  18. {
  19. this.rotate = rotate;
  20. this.p = p;
  21. }
  22.  
  23. public int rotate;
  24. public Point[] p;
  25. }
  26.  
  27. public static void Main()
  28. {
  29. // ここでエラーが出てた
  30. Block[] block = new[]
  31. {
  32. new Block(
  33. 1,
  34. new []
  35. {
  36. new Point( 0, 0 ),
  37. new Point( 0, 0 ),
  38. new Point( 0, 0 ),
  39. } ),
  40. new Block(
  41. 1,
  42. new []
  43. {
  44. new Point( 0, 0 ),
  45. new Point( 0, 0 ),
  46. new Point( 0, 0 ),
  47. } ),
  48. };
  49. }
  50. }
Success #stdin #stdout 0.01s 131136KB
stdin
Standard input is empty
stdout
Standard output is empty