Commit Graph

3 Commits

Author SHA1 Message Date
Michael Gottesman
c97d33838b [borrow-expr] Add tests for globals, self in methods, generic self in methods.
Just extending the tests a little bit. No functionality change.
2023-01-18 16:01:43 -08:00
Michael Gottesman
ef98a3cfad [borrow-operator] Add initial support for applying _borrow to self when calling a method.
Example: (_borrow f).callFunction()

This still does not support _borrow for get/set and more general accessors. That
change will be coming in a forthcoming commit.

rdar://103888591
2023-01-04 14:32:20 -08:00
Michael Gottesman
94f1391fbe [borrow-expr] Wire up borrow expr to SILGenApply. 2022-12-22 13:02:04 -08:00