Add factory creation ports and owner initialization contracts
This commit is contained in:
@@ -272,7 +272,7 @@ test("generic conformances bind state against specialized signatures", () => {
|
||||
atom Document id "document";
|
||||
import interface Reader;
|
||||
conform Document as Reader<string> id "reader-conformance" {
|
||||
private state Values id "values-slot" on Document : list<optional<string>> policy optimistic-register;
|
||||
private state Values id "values-slot" on Document : list<optional<string>> policy register;
|
||||
bind values.get to state Values.read;
|
||||
bind values.watch-start to state Values.watch-start;
|
||||
bind values.watch-stop to state Values.watch-stop;
|
||||
@@ -328,7 +328,7 @@ test("package receivers and injected dependencies select exact applications", ()
|
||||
import interface Reader; import interface Summary; import package P;
|
||||
atom Note id "note";
|
||||
conform Note as Reader<string> id "reader-conformance" {
|
||||
private state Values id "values" on Note : list<optional<string>> policy optimistic-register;
|
||||
private state Values id "values" on Note : list<optional<string>> policy register;
|
||||
bind values.get to state Values.read;
|
||||
bind values.watch-start to state Values.watch-start;
|
||||
bind values.watch-stop to state Values.watch-stop;
|
||||
|
||||
Reference in New Issue
Block a user