/ncc/testsuite/frommcs/test-478.n

http://github.com/xxVisorxx/nemerle · Unknown · 35 lines · 28 code · 7 blank · 0 comment · 0 complexity · 9d09da54ff4c8eb5546736b8ba15beee MD5 · raw file

  1. using System;
  2. using System.ComponentModel;
  3. using System.ComponentModel.Design;
  4. namespace Test {
  5. class MainClass {
  6. public static Main() : void {}
  7. }
  8. [Test(TestEnum2.TestValue)]
  9. enum TestEnum {
  10. | Value
  11. }
  12. class TestAttribute : Attribute {
  13. public this(_ : TestEnum2 ) {
  14. }
  15. }
  16. class Test2Attribute : Attribute {
  17. }
  18. enum TestEnum2 {
  19. [Test2]
  20. | TestValue
  21. }
  22. }
  23. /*
  24. #600
  25. NO-TEST
  26. BEGIN-OUTPUT
  27. END-OUTPUT
  28. */