conlang: Self is not a type, it's a path to a type
This commit is contained in:
@@ -62,7 +62,7 @@ TyFn = "fn" TyTuple ('->' Ty)? ;
|
||||
(* path *)
|
||||
Path = PathPart ('::' PathPart)*
|
||||
| '::' (PathPart ('::' PathPart)*)? ;
|
||||
PathPart = "super" | "self" | Identifier ;
|
||||
PathPart = "super" | "self" | "Self" | Identifier ;
|
||||
Identifier = IDENTIFIER ;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user