Created
December 24, 2019 10:21
-
-
Save MaryamZi/0b1cc33d9c924114b75e261b097fe97c to your computer and use it in GitHub Desktop.
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
public function main() { | |
error err = error("TestError", | |
message = "error message", | |
code = 1111); | |
record {| | |
string message?; | |
error cause?; | |
anydata|error...; | |
|} detail = err.detail(); | |
detail.message = "new message"; // this panics! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment