file: Class1.pas
namespace ClassLibrary1;
type
Class1 = public class
end;
end.
file: Class2.pas
namespace ClassLibrary1;
type
Class2 nested in Class1 = public class
end;
end.
Compiler Output:
Error (E28) Unknown type "Class1"
namespace ClassLibrary1;
type
Class1 = public class
end;
end.
namespace ClassLibrary1;
type
Class2 nested in Class1 = public class
end;
end.
Compiler Output:
Error (E28) Unknown type "Class1"
I believe right now this is not supported. Nested classes need to. be in the same file as (a part of) the outer class.
Thanks, logged as bugs://80814
Hi Alexey,
You should define as:
file Class1:
namespace ClassLibrary1;
type
Class1 = public partial class
end;
end.
File Class2
namespace ClassLibrary1;
type
Class1 = public partial class end;
Class2 nested in Class1 = public class
end;
end.
Fine solution, thanks!
bugs://80814 got closed with status nochangereq.