Compiler exceptions
This commit is contained in:
@@ -9,6 +9,10 @@ uses
|
||||
Myc.Data.Keyword;
|
||||
|
||||
type
|
||||
// Exception for atomic type errors (promotion failures, invalid operations)
|
||||
// Inherits from Exception directly to keep Types unit independent of Nodes/AST.
|
||||
ETypeException = class(Exception);
|
||||
|
||||
IStaticType = interface;
|
||||
|
||||
// Defines the categories of types available in the language.
|
||||
@@ -79,8 +83,6 @@ type
|
||||
function GetHashCode: Integer;
|
||||
end;
|
||||
|
||||
ETypeException = class(Exception);
|
||||
|
||||
// Factory and Flyweight access for static types.
|
||||
// Use this record to create or access all IStaticType instances.
|
||||
TTypes = record
|
||||
|
||||
Reference in New Issue
Block a user