Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Update for change in type of Env.root #58

Merged
merged 1 commit into from
Jan 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .release-notes/env-root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Update to work with latest ponyc

The most recent ponyc implements [RFC #65](https://github.com/ponylang/rfcs/blob/main/text/0065-env-root-not-optional.md) which changes the type of `Env.root`.

We've updated accordingly. You won't be able to use this and future versions of the library without a corresponding update to your ponyc version.
6 changes: 3 additions & 3 deletions examples/async_tcp_property.pony
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ class _AsyncTCPSenderProperty is Property1[String]
fun gen(): Generator[String] =>
Generators.unicode()

fun ref property(sample: String, ph: PropertyHelper) ? =>
let sender = TCPSender(ph.env.root as AmbientAuth)
fun ref property(sample: String, ph: PropertyHelper) =>
let sender = TCPSender(ph.env.root)
ph.dispose_when_done(
TCPListener(
ph.env.root as AmbientAuth,
ph.env.root,
recover MyTCPListenNotify(sender, ph, "PONYCHECK") end,
"127.0.0.1",
"0"))
Expand Down