-
-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75f991f
commit cb2f814
Showing
2 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Fix compiler crash | ||
|
||
Previously the following code would cause the compiler to crash. Now it will display a helpful error message: | ||
|
||
```pony | ||
struct FFIBytes | ||
var ptr: Pointer[U8 val] = Pointer[U8].create() | ||
var length: USize = 0 | ||
fun iso string(): String val => | ||
recover String.from_cpointer(consume FFIBytes.ptr, consume FFIBytes.length) end | ||
actor Main | ||
new create(env: Env) => | ||
env.out.print("nothing to see here") | ||
``` | ||
|