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