Open liamappelbe opened 6 days ago
I would like to work on this issue, should I work on this issue?
Sure. PRs are welcome. I think most of the changes for this fix will be in the transformation stage, so a good place to start reading would be transform.dart
. Make sure to add a test case to test/integration
. Let me know if you have any questions.
Oh, btw, this was a follow up bug to https://github.com/dart-lang/native/pull/1766, so make sure to sync past that now that it's landed, since it takes care of the parsing side of throws
.
Getters are allowed to throw in Swift:
Such properties must be read-only (they can't have setters).
Translating these to an
@objc
compatible wrapper looks like this:But this is a compile error because throwing getters aren't allowed to be annotated with
@objc
. The fix is to instead translate throwing getters to ordinary methods.