Require "self" as base expression for intra-class method or field references
All field or method references within a class must begin with "self." now. A bare reference to a field or method in the same class will no longer typecheck.
This commit is contained in:
parent
c2f28e231f
commit
c7082ce8e8
24 changed files with 49 additions and 162 deletions
|
|
@ -443,12 +443,6 @@ impl of tr for ast::def {
|
|||
ast::def_class(did) {
|
||||
ast::def_class(did.tr(xcx))
|
||||
}
|
||||
ast::def_class_field(did0, did1) {
|
||||
ast::def_class_field(did0.tr(xcx), did1.tr(xcx))
|
||||
}
|
||||
ast::def_class_method(did0, did1) {
|
||||
ast::def_class_method(did0.tr(xcx), did1.tr(xcx))
|
||||
}
|
||||
ast::def_region(nid) { ast::def_region(xcx.tr_id(nid)) }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue